service redis stop Stopping ... (error) NOAUTH Authentication required.

Go_Viola

关注

阅读 93

2022-06-24

redis停止报错

Stopping ...
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...

因为设置了密码,可以先登录客户端,再停止

./redis-cli

进入之后输入密码

[root@iZwz97hxl5q1kwu1lhn5cwZ bin]# ./redis-cli 
127.0.0.1:6379> AUTH password

再执行

127.0.0.1:6379> shutdown

然后服务就停了

not connected>

重新启动

[root@iZwz97hxl5q1kwu1lhn5cwZ bin]# ./redis-server /etc/redis/6379.conf


精彩评论(0)

0 0 举报