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"
原文地址:https://www.cnblogs.com/fangwu/p/8602487.html