异常:ERR Client sent AUTH, but no password is set

登录到redis服务

127.0.0.1:6379> auth 123456
ERR Client sent AUTH, but no password is set

设置其密码

Redis 127.0.0.1:6379> CONFIG SET requirepass "123456"
OK
redis 127.0.0.1:6379> AUTH 123456
Ok
    原文作者:asoren
    原文地址: https://segmentfault.com/a/1190000010913233
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞