首页 > 其他 > 详细

redis helloworld

时间:2018-03-19 16:21:45      阅读:209      评论:0      收藏:0      [点我收藏+]

一、启动 redis 服务

[root@MyLinux bin]# ./redis-server redis.conf

二、使用客户端连接服务

[root@MyLinux bin]# ./redis-cli -h 192.168.25.128 -p 6379

三、如何关闭服务端

[root@MyLinux bin]# ./redis-cli shutdown

四、如何退出客户端的连接

192.168.25.128:6379> exit

五、helloworld

192.168.25.128:6379> set str helloworld

 六、取值

192.168.25.128:6379> get str

七、返回值

"helloworld"

 

redis helloworld

原文:https://www.cnblogs.com/fangwu/p/8602487.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!