当前位置:网站首页>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 :
边栏推荐
猜你喜欢
Mathematical induction and recursion
CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
代码质量管理
Under the tide of "going from virtual to real", Baidu AI Cloud is born from real
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
亚像素级角点检测Opencv-cornerSubPix
R数据分析:cox模型如何做预测,高分文章复现
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
树莓派设置wifi自动连接
Make (convert) ICO Icon
随机推荐
CVPR 2022 最佳论文候选 | PIP: 6个惯性传感器实现全身动捕和受力估计
数学归纳与递归
RestClould ETL 社区版六月精选问答
Jerry's phonebook acquisition [chapter]
Room rate system - login optimization
Cocos2d-x box2d physical engine compilation settings
线性表的查找
sshd[12282]: fatal: matching cipher is not supported: aes256- [email protected] [preauth]
Principle of attention mechanism
Development of wireless communication technology, cv5200 long-distance WiFi module, UAV WiFi image transmission application
Don't you know the relationship between JSP and servlet?
“去虚向实”大潮下,百度智能云向实而生
input_ delay
Codeforces round 264 (Div. 2) C gargari and Bishop [violence]
图形化工具打包YOLOv5,生成可执行文件EXE
Jericho is in non Bluetooth mode. Do not jump back to Bluetooth mode when connecting the mobile phone [chapter]
房费制——登录优化
SQL中删除数据
How does C language (string) delete a specified character in a string?
Shell programming basics