当前位置:网站首页>ubuntu20安装redisjson记录
ubuntu20安装redisjson记录
2022-07-06 20:20:00 【小俊俊的博客】
ubuntu20安装redisjson记录
一、下载文件
https://github.com/RedisJSON/RedisJSON/releases
找到1.0.4版本,下载rejson.so
二、复制文件到指定文件夹
sudo cp ./src/rejson.so /usr/lib/
./src/rejson.so为你下载rejson.so的文件夹。
三、修改配置文件
sudo gedit /etc/redis/redis.conf
在第40几行左右添加
loadmodule /usr/lib/rejson.so
重启redis
sudo systemctl restart redis
四、测试
开启redis
redis-cli
输入
json.set abc . '{"a":"1","b":"2","c":"3"}'
如果返回ok即可
五、补充
1.在redisjson中,json存储的格式问题转义字符
在redisjson输入命令json.get时,可以看到其存储的格式有点变化,这一点体现在C++代码中时,输入的数据格式也需要进行相应的调整。注意转义字符的应用,如下图:
边栏推荐
- Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
- 编译常量、ClassLoader类、系统类加载器深度探析
- 杰理之发射端在接收端关机之后假死机【篇】
- opencv环境的搭建,并打开一个本地PC摄像头。
- Mathematical induction and recursion
- VHDL实现任意大小矩阵乘法运算
- 【无标题】
- Cryptography series: detailed explanation of online certificate status protocol OCSP
- 亚像素级角点检测Opencv-cornerSubPix
- Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
猜你喜欢
Don't you know the relationship between JSP and servlet?
美国空军研究实验室《探索深度学习系统的脆弱性和稳健性》2022年最新85页技术报告
mos管实现主副电源自动切换电路,并且“零”压降,静态电流20uA
硬件之OC、OD、推挽解释
又一百万量子比特!以色列光量子初创公司完成1500万美元融资
VHDL实现任意大小矩阵乘法运算
Flutter3.0了,小程序不止于移动应用跨端运行
首届“量子计算+金融科技应用”研讨会在京成功举办
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
从0开始创建小程序
随机推荐
杰理之在非蓝牙模式下,手机连接蓝牙不要跳回蓝牙模式处理方法【篇】
23.(arcgis api for js篇)arcgis api for js椭圆采集(SketchViewModel)
Mathematical induction and recursion
Stored procedures and functions (MySQL)
首届“量子计算+金融科技应用”研讨会在京成功举办
杰理之开启经典蓝牙 HID 手机的显示图标为键盘设置【篇】
Matlab Error (Matrix dimensions must agree)
【Swift】学习笔记(一)——熟知 基础数据类型,编码风格,元组,主张
HDU ACM 4578 Transformation-> Segment tree - interval change
netperf 而网络性能测量
VHDL实现任意大小矩阵乘法运算
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
树莓派设置wifi自动连接
Jerry's RTC clock development [chapter]
Another million qubits! Israel optical quantum start-up company completed $15million financing
Codeforces round 264 (Div. 2) C gargari and Bishop [violence]
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
opencv环境的搭建,并打开一个本地PC摄像头。
Cryptography series: detailed explanation of online certificate status protocol OCSP
杰理之关于 DAC 输出功率问题【篇】