当前位置:网站首页>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++代码中时,输入的数据格式也需要进行相应的调整。注意转义字符的应用,如下图:
边栏推荐
- HDU ACM 4578 Transformation->段树-间隔的变化
- 2022.6.28
- Jerry's phonebook acquisition [chapter]
- 美国空军研究实验室《探索深度学习系统的脆弱性和稳健性》2022年最新85页技术报告
- DOMContentLoaded和window.onload
- Matlab Error (Matrix dimensions must agree)
- 杰理之关于 DAC 输出功率问题【篇】
- Jericho turns on the display icon of the classic Bluetooth hid mobile phone to set the keyboard [chapter]
- 存储过程与函数(MySQL)
- Jerry's RTC clock development [chapter]
猜你喜欢

Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point

Mathematical induction and recursion

杰理之播内置 flash 提示音控制播放暂停【篇】

Sub pixel corner detection opencv cornersubpix

MOS transistor realizes the automatic switching circuit of main and auxiliary power supply, with "zero" voltage drop and static current of 20ua

尚硅谷JVM-第一章 类加载子系统

Laravel php artisan 自动生成Model+Migrate+Controller 命令大全

Lavel PHP artisan automatically generates a complete set of model+migrate+controller commands

Make (convert) ICO Icon

树莓派设置wifi自动连接
随机推荐
pip只下载不安装
“去虚向实”大潮下,百度智能云向实而生
The whole process of knowledge map construction
Decoration design enterprise website management system source code (including mobile source code)
Graphical tools package yolov5 and generate executable files exe
Flink Task退出流程与Failover机制
Don't you know the relationship between JSP and servlet?
C language string sorting
The first symposium on "quantum computing + application of financial technology" was successfully held in Beijing
Appx代码签名指南
函数重入、函数重载、函数重写自己理解
Oracle connection pool is not used for a long time, and the connection fails
Flink task exit process and failover mechanism
How-PIL-to-Tensor
input_ delay
【达梦数据库】备份恢复后要执行两个sql语句
Experience design details
Cocos2d-x box2d physical engine compilation settings
变量、流程控制与游标(MySQL)
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)