1.停止redis (进入redis安装目录)
[root@JDu4e00u53f7 redis]# ./bin/redis-cli shutdown
2. 启动redis
[root@JDu4e00u53f7 redis]# ./bin/redis-server /usr/local/redis/etc/redis.conf
3.使用redis
[root@JDu4e00u53f7 redis]# ./bin/redis-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> keys*
(error) ERR unknown command 'keys*'
127.0.0.1:6379>