Redis第一篇章 Hello Word!

1.找到redis目录

2.在新建一个文件夹(myredis)

3.将redis.conf 进行复制到myredis 文件夹里面

4.启动redis 

redis-server /home/dc2-user/myredis/redis.conf

redis-cli -p 6379

ping

5.建一个键值对

set k1 hello

6.获取键值对

get k1

7.退出的时候

shutdown

exit

8.查询redis进程

ps -ef|grep redis

原文地址:https://www.cnblogs.com/xkl520xka/p/8919971.html