Stepping on the pit series "12" to solve the redis failure to connect to the cloud server

When connecting to the server redis locally, it was found that the connection failed. This is because redis on the server is running in protected mode, and remote connections cannot be made in this mode. Just modify the redis.conf file in the redis directory, find protected-mode yes , and change yes to no to successfully connect.

Protection model

By the way,
1. Comment out bind 127.0.0.1, and start the connection to the outside world.
2. When daemonize is set to yes, open redis to run in the background

Guess you like

Origin blog.csdn.net/hyx1249273846/article/details/113884447