码迷,mamicode.com
首页 > 其他好文 > 详细

redis helloworld

时间:2018-03-19 16:44:32      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:linu   exit   font   pre   连接   style   返回   post   strong   

一、启动 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

标签:linu   exit   font   pre   连接   style   返回   post   strong   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!