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

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

猜你喜欢

转载自blog.csdn.net/leisure_life/article/details/103722247