当前位置:网站首页>Ubuntu 20 installation des enregistrements redisjson
Ubuntu 20 installation des enregistrements redisjson
2022-07-07 03:25:00 【Le blog de Joon Joon Joon】
ubuntu20InstallationredisjsonEnregistrement
Un.、Télécharger le fichier
https://github.com/RedisJSON/RedisJSON/releases
Trouver1.0.4Version,Téléchargerrejson.so
2.、Copier le fichier dans le dossier spécifié
sudo cp ./src/rejson.so /usr/lib/
./src/rejson.soTélécharger pour vousrejson.soDossier pour.
Trois、Modifier le profil
sudo gedit /etc/redis/redis.conf
En40Ajouter quelques lignes à gauche et à droite
loadmodule /usr/lib/rejson.so

Redémarrerredis
sudo systemctl restart redis
Quatre、Tests
Ouvertredis
redis-cli
Entrée
json.set abc . '{"a":"1","b":"2","c":"3"}'
Si vous revenezokC'est tout.
Cinq、Supplément
1.InredisjsonMoyenne,json Problèmes de formatage stockés échapper aux caractères 
InredisjsonSaisissez les commandesjson.getHeure, Vous pouvez voir un peu de changement dans le format qu'il stocke , Cela se reflète dans C++Dans le Code, Le format des données saisies doit également être ajusté en conséquence . Attention à l'application des caractères d'évasion ,Comme le montre la figure ci - dessous::
边栏推荐
- mos管實現主副電源自動切換電路,並且“零”壓降,靜態電流20uA
- Decoration design enterprise website management system source code (including mobile source code)
- CVPR 2022 最佳论文候选 | PIP: 6个惯性传感器实现全身动捕和受力估计
- An error in SQL tuning advisor ora-00600: internal error code, arguments: [kesqsmakebindvalue:obj]
- 迷失在MySQL的锁世界
- When you go to the toilet, you can clearly explain the three Scheduling Strategies of scheduled tasks
- Codeforces round 264 (Div. 2) C gargari and Bishop [violence]
- 腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
- 树莓派设置wifi自动连接
- Laravel php artisan 自动生成Model+Migrate+Controller 命令大全
猜你喜欢
随机推荐
sshd[12282]: fatal: matching cipher is not supported: [email protected] [preauth]
2022.6.28
Netperf and network performance measurement
亚像素级角点检测Opencv-cornerSubPix
VHDL实现单周期CPU设计
[C language] question set of IX
What about SSL certificate errors? Solutions to common SSL certificate errors in browsers
19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
Shell programming basics
About Confidence Intervals
树莓派设置静态ip
数学归纳与递归
OC, OD, push-pull explanation of hardware
HDU 4337 King Arthur' S Knights it outputs a Hamiltonian circuit
Appx代码签名指南
SQL中删除数据
如何替换模型的骨干网络(backbone)
The first symposium on "quantum computing + application of financial technology" was successfully held in Beijing
New benchmark! Intelligent social governance
Hazel engine learning (V)








