When we installed the Redis service, we found that the password was set in its configuration file redis.windows.conf (or redis.conf): requirepass ******
But after opening redis-cli.exe, enter the command config get Requirepass found:
This indicates that the password setting in the configuration file is not in effect.
Cause: The problem is that we started the Redis service by double-clicking Redis-server.exe in its installation directory, so that the startup result is that the profile is not specified, and Redis does not automatically use the redis.windows.conf (or redis.conf) file under the installation directory
The red line is framed by a hint that says very clearly "warning:no config file specified" does not specify a profile
Workaround:
Method 1: In fact, we started the Redis service directly in the installation directory error, the correct way is to open "run", type "cmd" cut to the installation directory output Redis-server.exe redis.windows.conf, enter, you can.
Method 2: After the new file Startup.bat in the Redis installation directory, right-click "Edit", or first create the file with Notepad, and then change the extension, the file is written: Redis-server.exe redis.windows.conf. Save, and then run the file directly, do not run Redis-server.exe directly, you can.
Invalid password set in Redis configuration file in Windows environment