Redis Notes - Protected Mode Issues

Deploying a new project today, two machines share a redis instance, one of the machines has a problem, and can be accessed with client tools, but an error is reported when using keys *:

-DENIED Redis is running in protected modebecause protected mode is enabled, no bind address was specified, noauthentication password is requested to clients.   
In this mode connections areonly accepted from the loopback interface. If you want to connect from externalcomputers to Redis you may adopt one of the following......

Baidu a bit, it is necessary

1.bind 127.0.0.1 this line.

2.protected-mode yes Change this line to no.

Then restart redis. If you still report a similar error. Most likely because the modified configuration file did not take effect. At this time, you can try another startup method.

For example, redis-cli.exe redis.windows.conf specifies the configuration file to start. After startup, connect to the instance, check the keys *. It should work.

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_20714801/article/details/92767822