Redis主从复制--【MASTER aborted replication with an error: NOAUTH Authentication required.】

开启从复制,查看redis.log报如下错误

因是主从都开启了密码requirepass,导致连接不上

在redis从服务器的配置文件redis.conf添加如下内容:

masterauth 12345678

配置好后重启从redis,

在主库使用info replication,查看已成功连接

猜你喜欢

转载自blog.csdn.net/j_ychen/article/details/105838022
今日推荐