当前位置:网站首页>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 模式单声道或立体声选择设置【篇】
- Principle of attention mechanism
- CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
- Numpy中排序操作partition,argpartition,sort,argsort
- 安装 torch 0.4.1
- Laravel php artisan 自动生成Model+Migrate+Controller 命令大全
- Jerry's FM mode mono or stereo selection setting [chapter]
- Lost in the lock world of MySQL
- opencv环境的搭建,并打开一个本地PC摄像头。
猜你喜欢
Graphical tools package yolov5 and generate executable files exe
小程序能运行在自有App中,且实现直播和连麦?
亚像素级角点检测Opencv-cornerSubPix
Principle of attention mechanism
2022.6.28
Development of wireless communication technology, cv5200 long-distance WiFi module, UAV WiFi image transmission application
Appx code signing Guide
leetcode
Household appliance industry under the "retail is king": what is the industry consensus?
Appx代码签名指南
随机推荐
Jerry's transmitter crashed after the receiver shut down [chapter]
迷失在MySQL的锁世界
Hazel engine learning (V)
Le tube MOS réalise le circuit de commutation automatique de l'alimentation principale et de l'alimentation auxiliaire, et la chute de tension "zéro", courant statique 20ua
Lost in the lock world of MySQL
Shell 编程基础
Cocos2d-x Box2D物理引擎编译设置
Household appliance industry under the "retail is king": what is the industry consensus?
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)
Cocos2d-x box2d physical engine compilation settings
Matlab Error (Matrix dimensions must agree)
25.(arcgis api for js篇)arcgis api for js线修改线编辑(SketchViewModel)
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
如何自定义Latex停止运行的快捷键
杰理之关于 DAC 输出功率问题【篇】
体会设计细节
The latest 2022 review of "small sample deep learning image recognition"
leetcode-02(链表题)
HDU ACM 4578 Transformation-> Segment tree - interval change
杰理之开 BLE 退出蓝牙模式卡机问题【篇】