代码改变世界

重启redis报错:Waiting for Redis to shutdown

2016-12-14 15:22  abce  阅读(6997)  评论(0编辑  收藏  举报

重启redis,发现一直报:Waiting for Redis to shutdown 

service redis_6379 restart
Stopping ...
OK
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...	

  

 

因为配置了密码验证,而在restart的时候并没有配置密码。 

解决方法:
1.修改redis服务脚本,加入如下所示的信息即可:

vi /etc/init.d/redis
$CLIEXEC -a "password" -p $REDISPORT shutdown