redis设置密码后停止服务报错,NOAUTH Authentication required

可以修改/etc/init.d/redis文件中的stop命令

$CLIEXEC -p $REDISPORT shutdown
改为
$CLIEXEC -a "password" -p $REDISPORT shutdown
上面"password"为你设置的密码

 再次停止服务,服务成功关闭

 

 

posted on 2019-06-04 17:27  玄同太子  阅读(11911)  评论(0编辑  收藏  举报