Scenario: Just contact with Redis, think about the various aspects of Redis API to do some experimenting, and then encounter some confusing things; the first login does not require a password, the information is found, the configuration file is changed, the reboot is not useful; it can still be connected;
Solve:
231081694 (Linux operation and Maintenance House), Shenzhen, Ronin (361***917) gave me a proposal, is not the correct loading of the configuration file;
Then I renamed the Config file, restarted it, re-connected it, found that I could still log in, and executed the command; this does not use this configuration file I think;
Further confirmation; I set the password by command; the command prompt does not have permission, because the Redis password is clear text; I go to the Redis configuration file and see that there is still no change;
Try again: with this diagram;
When it starts, it prompts me; a default config is used; The config that I think is not used;
Then the solution:
Follow the configuration file path at boot time;
For example:
This means that the password is in effect;
Thank you: 231081694 (Linux operation and Maintenance House) and Shenzhen, Ronin (361***917)
WINDOWS REDIS modified Requirepass does not take effect;