redis 主从集群增加密码后启动报错 NOAUTH Authentication required

文章
林里克斯

redis 主从集群增加密码后启动报错 NOAUTH Authentication required


实验平台:CentOS Linux release 7.8.2003 (Core)

Redis Version:Redis server 4.0.2


1.具体报错

25281:s 06 Apr 11:41:45.603 * Connecting to MASTER 192.168.1.1:6379
25281:s 06 Apr 11:41:45.603 * MASTER <-> SLAVE sync started
25281:s 06 Apr 11:41:45.603 * Non blocking connect for SYNC fired the event.
25281:s 06 Apr 11:41:45.604 * Master replied to PING, replication can continue…
25281:s 06 Apr 11:41:45.604 * (Non critical) Master does not understand REPLCONF listening-port: -NOAUTH Authentication required.
25281:s 06 Apr 11:41:45.605 * (Non critical) Master does not understand REPLCONF capa:-NOAUTH Authentication required.
25281:s 06 Apr 11:41:45.606 * Partial resynchronization not possible (no cached master)
25281:s 06 Apr 11:41:45.606 # Unexpected reply to PSYNC from master: -NOAUTH Authentication required.
25281:s 06 Apr 11:41:45.607 * Discarding previously cached master state.
25281:s 06 Apr 11:41:45.607 * Retrying with SYNC…
25281:s 06 Apr 11:41:45.609 # MASTER aborted replication with an error: NOAUTH Authentication required.

2.解决报错

此原因是因为,设置了密码主从集群之间不能验证导致。

masterauth <master-password>
#在配置里增加此配置项即可,跟 requirepass 设置的 redis 密码

Over~

版权协议须知!

本篇文章来源于 Uambiguous ,如本文章侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意

1091 0 2021-04-06


分享:
icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif
博主卡片
林里克斯 博主大人
一个致力于Linux的运维平台
运维时间
搭建这个平台,只为分享及记载自己所遇之事和难题。

现在时间 2024-04-29

今日天气
站点统计
  • 文章总数:240篇
  • 分类总数:29个
  • 评论总数:10条
  • 本站总访问量 216879 次

@奥奥

@Wong arrhenius 牛比

@MakerFace 厉害了!