The solution to the ineffectiveness of using redis requirepass Authentication under windows
Because there are two configuration files for using redis under windows, redis.windows.conf and redis.windows-service.conf, we need to specify a configuration file because there is no configuration file specified at startup.
1, set password, there are many online, two options, the first is the command line, the second is to modify the installation directory of the redis.windows.conf configuration file, find # requirepass foobared, remove the comments, become!
Requirepass myPassword
Ps: you will find that the wool is useless after the restart. On the client side, enter the command config get requirepass, and it will appear.
1) "requirepass"
2) "
Proceed to the second step
2. Create a shortcut to redis-server.exe, right-click the shortcut property, and add redis.windows.conf after the target. This is the key. Although you modified the .conf file, exe does not use this conf, so we need to manually specify exe to run according to the modified conf, and then OK.
If you have any questions, you are welcome to correct!
The above windows under the use of redis requirepass authentication does not work the solution is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.