1.安装
1 安装redis-cli
2 cd redis-3.2.0
3 make
4 cd src && make install
2.使用
➜ src redis-cli -h host -p 6379 -a pwd host:6379> keys * 1) "merak:Cms_Content_Category_12" 2) "merak:Cms_Content_Category_23" 3) "merak:Cms_Preview_Content_Category_7" 4) "qxwz:billy2" 5) "merak:Cms_Content_Category_2" 6) "merak:Cms_Content_Category_26" 7) "merak:Cms_Preview_Content_Category_8" 8) "merak:Cms_Content_Category_6" 9) "merak:Cms_Preview_Content_publish" 10) "merak:Cms_Preview_Content_Category_6" 11) "koa:venus:wxJsTicket" 12) "merak:Cms_Preview_Content_Category_9" 13) "merak:Cms_Content_Category_11" 14) "merak:Cms_Content_publish" 15) "merak:Cms_Preview_Content_Category_2" 16) "merak:Cms_Preview_Content_Category_12" 17) "venus:invited:code:sign:suzhou:oNXAIsw8EJRf-UqEs8ZCTcl5NPRo" 18) "merak:Cms_Content_Category_4" 19) "merak:Cms_Preview_Content_Category_10" 20) "merak:Cms_Content_Category_8" 21) "merak:Cms_Content_Category_sdk_all" 22) "merak:Cms_Content_Category_Preview_sdk_all" 23) "qxwz:venus_captcha_no_verify_key" 24) "liupo-test" 25) "merak:Cms_Content_Category_7" 26) "koa:venus:wxAccessToken" 27) "notify-keyspace-events" 28) "merak:Cms_Preview_Content_Category_4" 29) "merak:Cms_Content_Category_9" 30) "merak:Cms_Content_Category_10" 4f4e8f36170d4f0f.m.cnbja.kvstore.aliyuncs.com:6379> select 1 OK 4f4e8f36170d4f0f.m.cnbja.kvstore.aliyuncs.com:6379[1]> keys * 1) "redis" 4f4e8f36170d4f0f.m.cnbja.kvstore.aliyuncs.com:6379[1]> get redis "aliyun-redis-db" 4f4e8f36170d4f0f.m.cnbja.kvstore.aliyuncs.com:6379[1]> quit ➜ src
redis-cli 常用命令自查
此文章本站原创,地址 https://www.vxzsk.com/1264.html
转载请注明出处!谢谢!
感觉本站内容不错,读后有收获?小额赞助,鼓励网站分享出更好的教程
上一篇:redis最佳实战-快速入门
下一篇:Redis 性能
^