问题:redis 密码认证失败
报错信息:Caused by: io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set
报错截图:

报错:io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set

报错原因:下载安装的redis默认是没有密码的,需要设置密码
解决方案:

找到 redis 文件夹下的 redis.windows.conf 文件,添加修改 requirepass。
报错:io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set
打开 redis-cli,设置密码。

  • 设置密码:config set requirepass “123456”
  • 连接redis,认证:auth 123456
    报错:io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set
    也可以在 application.properties 配置文件中去掉 #spring.redis.password=123456 配置。
    报错:io.lettuce.core.RedisCommandExecutionException: ERR Client sent AUTH, but no password is set

相关文章:

  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
  • 2021-09-04
猜你喜欢
  • 2021-05-31
  • 2022-12-23
  • 2021-09-24
  • 2021-06-06
  • 2022-02-02
相关资源
相似解决方案