文章内容

2017/9/25 22:46:41,作 者: 黄兵

Client sent AUTH, but no password is set, sPort: 0, LastCommand:

最近在用Redis的时候报错,错误如下:

Client sent AUTH, but no password is set, sPort: 0, LastCommand:

它的意思就是redis服务器没有设置密码,但客户端向其发送了AUTH请求,于是把程序中所有jedis发送授权的地方都去掉,可是发现异常还是存在!!简直无语了

解决方法:

redis 127.0.0.1:6379> CONFIG SET requirepass "123456"
OK
redis 127.0.0.1:6379> AUTH 123456
Ok
设置下这个配置密码就好了

参考资料:

redis异常解决:jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

连接redis报此错误:ERR Client sent AUTH, but no password is set

分享到:

发表评论

评论列表