当前位置:网站首页>ubuntu20安裝redisjson記錄
ubuntu20安裝redisjson記錄
2022-07-07 03:25: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++代碼中時,輸入的數據格式也需要進行相應的調整。注意轉義字符的應用,如下圖:
边栏推荐
- 上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
- 杰理之电话本获取【篇】
- Graphical tools package yolov5 and generate executable files exe
- Codeforces round 264 (Div. 2) C gargari and Bishop [violence]
- About Estimation Statistics
- Lab1 configuration script
- input_ delay
- VHDL实现任意大小矩阵加法运算
- Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
- Matlab Error (Matrix dimensions must agree)
猜你喜欢
制作(转换)ico图标
RestClould ETL 社区版六月精选问答
亚像素级角点检测Opencv-cornerSubPix
input_ delay
Depth analysis of compilation constants, classloader classes, and system class loaders
Jerry's broadcast has built-in flash prompt tone to control playback pause [chapter]
Don't you know the relationship between JSP and servlet?
How to replace the backbone of the model
「小样本深度学习图像识别」最新2022综述
[cpk-ra6m4 development board environment construction based on RT thread studio]
随机推荐
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
unrecognized selector sent to instance 0x10b34e810
Don't you know the relationship between JSP and servlet?
体会设计细节
【达梦数据库】添加自动收集统计信息的任务
Opencv environment, and open a local PC camera.
Sub pixel corner detection opencv cornersubpix
Flink Task退出流程与Failover机制
Lingyun going to sea | yidiantianxia & Huawei cloud: promoting the globalization of Chinese e-commerce enterprise brands
leetcode
应用程序启动速度的优化
input_ delay
Decoration design enterprise website management system source code (including mobile source code)
安装 torch 0.4.1
注意力机制原理
源代码保密的意义和措施
23.(arcgis api for js篇)arcgis api for js椭圆采集(SketchViewModel)
OC, OD, push-pull explanation of hardware
sshd[12282]: fatal: matching cipher is not supported: aes256- [email protected] [preauth]
Optimization of application startup speed