Redis is invalid after canceling/modifying the password requirepass

1. Problem description

  • When building a redis master-slave cluster, there was always a password problem. The default password was set to 123456 before. Later, I found that even after changing the default password, I still need to write the original password to log in. Even after commenting requirepass, the password of 123456 is still required.
  • After reading a lot of articles, either I can’t solve it, or I still have the same problem after logging in next time, it’s not a one-time solution

2. Solution:

insert image description here
Modify the user default on in redis.confnopass ~* &* +@all
Note that the default is changed to this nopass! ! !
Before it was changed, it was a long string of encrypted things, I guess it is 123456, change it to nopass, or change it to your own specific password,Or directly delete the following things generated by config rewrite,problem solved!

insert image description here

3. Successful login without password

First look at the thread ps aux | grep redis, kill after finding out the number, restart redis (also restart xshell), and you're done! !

insert image description here

Guess you like

Origin blog.csdn.net/YiGeiGiaoGiao/article/details/129348588