重启redis

[root@lecode-dev-001 packages]# /usr/local/redis/bin/redis-cli  -p 6379
127.0.0.1:6379> auth Redislecodedev@shuli123
OK
127.0.0.1:6379> SHUTDOWN #关闭redis
not connected> 
[root@lecode-dev-001 ~]# /usr/local/redis/bin/redis-server  /data/packages/redis.conf   #指定配置文件启动redis


posted @ 2022-11-02 10:20  安生丶  阅读(53)  评论(0编辑  收藏  举报