redis helloworld

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

 

posted @ 2018-03-19 15:31  方方方方方方  阅读(285)  评论(0编辑  收藏  举报