Redis 设置密码登陆后使用 /etc/init.d/redis_6379 restart会出现:
[root@8183539155d2 /]# /etc/init.d/redis_6379 restart
Stopping ...
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
每次的解决办法都是使用ps -ef 查进程号,然后kill 掉,这样还要去删除/var/run/redis_6379.pid文件,有点繁琐。

解决办法:
用redis-cli密码登陆,然后shutdown,然后exit就OK了。
[root@8183539155d2 /]# redis-cli -a RedisPassword
127.0.0.1:6379> SHUTDOWN
not connected> EXIT

再用ps -ef可以看到进程已经退出。
[root@8183539155d2 /]# ps -ef | grep redis
root      3330  3300  0 12:44 ?        00:00:00 grep --color=auto redis

参考文章:http://blog.csdn.net/mingjie1212/article/details/51778914

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2021-12-15
  • 2021-08-02
  • 2021-06-24
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案