当前位置:网站首页>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++代碼中時,輸入的數據格式也需要進行相應的調整。注意轉義字符的應用,如下圖:
边栏推荐
- 杰理之FM 模式单声道或立体声选择设置【篇】
- Under the tide of "going from virtual to real", Baidu AI Cloud is born from real
- 数学归纳与递归
- SSL证书错误怎么办?浏览器常见SSL证书报错解决办法
- 制作(转换)ico图标
- 杰理之电话本获取【篇】
- Jericho is in non Bluetooth mode. Do not jump back to Bluetooth mode when connecting the mobile phone [chapter]
- 19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
- HDU 4337 King Arthur's Knights 它输出一个哈密顿电路
- R数据分析:cox模型如何做预测,高分文章复现
猜你喜欢

如何替换模型的骨干网络(backbone)

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

Flutter3.0了,小程序不止于移动应用跨端运行

美国空军研究实验室《探索深度学习系统的脆弱性和稳健性》2022年最新85页技术报告

“去虚向实”大潮下,百度智能云向实而生

The first symposium on "quantum computing + application of financial technology" was successfully held in Beijing

腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》

HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother

数学归纳与递归

Make (convert) ICO Icon
随机推荐
2022.6.28
leetcode-02(链表题)
How to replace the backbone of the model
Optimization of application startup speed
VHDL实现单周期CPU设计
1200.Minimum Absolute Difference
Codeforces Round #264 (Div. 2) C Gargari and Bishops 【暴力】
Shell 编程基础
About Tolerance Intervals
Appx code signing Guide
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
如何替换模型的骨干网络(backbone)
体会设计细节
图形化工具打包YOLOv5,生成可执行文件EXE
尚硅谷JVM-第一章 类加载子系统
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
Flink Task退出流程与Failover机制
About Estimation Statistics
Jerry's question about DAC output power [chapter]
22.(arcgis api for js篇)arcgis api for js圆采集(SketchViewModel)