启动主redis没有问题,启动从redis 突然报错 NOAUTH Authentication required的解决方法

 All rights reserved.No part of this article may be reproduced or distributed by any means,or stored in a database or retrieval system,without the prior written permission of persistenceGoing author
https://blog.csdn.net/persistencegoing/article/details/84376427

如果我们在主redis服务器上设置了密码,即:在redis.windows-service.conf配置文件中使用了requirepass 12345678(你设置的密码);
那么我们在从redis服务器上的配置文件redis.windows-service.conf中使用了slaveof 192.168.1.11 6379后发现:主从复制失败。

启动主redis没有问题,启动从redis 突然报错 NOAUTH Authentication required的解决方法


解决方案是:在从redis服务器上的配置文件redis.conf中找到:masterauth <master-password>这一行,然后在这一行的下面写上
masterauth 12345678(主redis服务器密码)。这时候我们再分别重启主redis服务器和从redis服务器,则发现主从复制成功!
 

希望大家关注我一波,防止以后迷路,有需要的可以加群讨论互相学习java ,学习路线探讨,经验分享与java求职     

群号:721 515 304

猜你喜欢

转载自blog.csdn.net/persistencegoing/article/details/92788659
今日推荐