当前位置:网站首页>Ubuntu20 installation redisjson record
Ubuntu20 installation redisjson record
2022-07-07 03:25:00 【Xiaojunjun's blog】
ubuntu20 install redisjson Record
One 、 Download the file
https://github.com/RedisJSON/RedisJSON/releases
find 1.0.4 edition , download rejson.so
Two 、 Copy files to the specified folder
sudo cp ./src/rejson.so /usr/lib/
./src/rejson.so Download for you rejson.so Folder .
3、 ... and 、 Modify the configuration file
sudo gedit /etc/redis/redis.conf
In the 40 Add a few lines or so
loadmodule /usr/lib/rejson.so

restart redis
sudo systemctl restart redis
Four 、 test
Turn on redis
redis-cli
Input
json.set abc . '{"a":"1","b":"2","c":"3"}'
If you return ok that will do 
5、 ... and 、 Add
1. stay redisjson in ,json Stored format problem escape character 
stay redisjson Enter the command json.get when , You can see that the storage format changes a little , This is reflected in C++ In the code , The input data format also needs to be adjusted accordingly . Pay attention to the application of escape characters , Here's the picture :
边栏推荐
猜你喜欢

【基于 RT-Thread Studio的CPK-RA6M4 开发板环境搭建】

「小样本深度学习图像识别」最新2022综述

How to replace the backbone of the model

Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point

R数据分析:cox模型如何做预测,高分文章复现

上个厕所的功夫,就把定时任务的三种调度策略说得明明白白

Centerx: open centernet in the way of socialism with Chinese characteristics

Create applet from 0

About Confidence Intervals

22.(arcgis api for js篇)arcgis api for js圆采集(SketchViewModel)
随机推荐
When you go to the toilet, you can clearly explain the three Scheduling Strategies of scheduled tasks
Jerry's ble exiting Bluetooth mode card machine [chapter]
【colmap】已知相机位姿情况下进行三维重建
Jericho turns on the display icon of the classic Bluetooth hid mobile phone to set the keyboard [chapter]
SQL Tuning Advisor一个错误ORA-00600: internal error code, arguments: [kesqsMakeBindValue:obj]
Don't you know the relationship between JSP and servlet?
Cocos2d-x Box2D物理引擎编译设置
The solution of unable to create servlet file after idea restart
制作(转换)ico图标
Shangsilicon Valley JVM Chapter 1 class loading subsystem
VHDL实现单周期CPU设计
树莓派设置wifi自动连接
Mathematical induction and recursion
cocos3——8. Implementation Guide for beginners
sshd[12282]: fatal: matching cipher is not supported: aes256- [email protected] [preauth]
LAB1配置脚本
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
注意力机制原理
杰理之RTC 时钟开发【篇】
【C语言】 题集 of Ⅸ