Redis sb问题:Caused by: redis.clients.jedis.exceptions:ERR Client sent AUTH, but no password is set

Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

这种方式启动 默认无密码  ,

如果在写java redis 是传参数 就会造成异常 Caused by: redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set

然后在这个文件下,添加:requirepass 123456   注意  123456是你redis的密码

Redis sb问题:Caused by: redis.clients.jedis.exceptions:ERR Client sent AUTH, but no password is set

不同版本,名称不一样

Redis sb问题:Caused by: redis.clients.jedis.exceptions:ERR Client sent AUTH, but no password is set

Redis sb问题:Caused by: redis.clients.jedis.exceptions:ERR Client sent AUTH, but no password is set

 


博客会不断更新和改进,欢迎大佬关注