151 Star 456 Fork 154

smallbun / smallbun

 / 详情

连接redis 哨兵时提示ERR Client sent AUTH, but no password is set

待办的
创建于  
2020-08-16 18:23

redis version 5.0.4
一主两从

三个节点redis.conf设置了
protected-mode yes
requirepass 123456

哨兵配置了
protected-mode no
sentinel auth-pass mymaster 123456

系统redis 配置如下

#reids
  redis:
    password: 123456
    sentinel:
      master: mymaster
      nodes: 192.168.2.132:26379,192.168.2.132:26380,192.168.2.132:26381
    timeout: 20000
    database: 0
    lettuce:
      pool:
        max-idle: 7
        min-idle: 2
        max-active: 7
        max-wait: -1ms
      shutdown-timeout: 200

启动报错:

ERR Client sent AUTH, but no password is set

看意思是不需要密码,

取消了yml配置的redis.password

启动又报错:
NOAUTH Authentication required.

呃。。。。 到底要不要密码???
redis的
protected-mode yes
requirepass 123456
是不可能取消的...

这个是什么问题呢?

评论 (1)

islibin 创建了任务
islibin 关联仓库设置为smallbun/smallbun
展开全部操作日志

我也是这个问题,你解决了吗

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
2022049 islibin 1670403738
Java
1
https://gitee.com/leshalv/smallbun.git
git@gitee.com:leshalv/smallbun.git
leshalv
smallbun
smallbun

搜索帮助