1.停止redis (进入redis安装目录)
[[email protected] redis]# ./bin/redis-cli shutdown
2. 启动redis
[[email protected] redis]# ./bin/redis-server /usr/local/redis/etc/redis.conf
3.使用redis
[[email protected] 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>
原文地址:https://www.cnblogs.com/banxian-yi/p/11080086.html
时间: 2024-11-10 07:29:43