异常: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
相关文章
相关标签/搜索