[Solution] Redis connection error: Cannot connect to redis-server.

1. Modify the address binding information;

bind 0.0.0.0 runs all IPs for access

bind 192.168.1.1 only runs the IP of 192.168.1.1 for access


2. If the login password is not required, modify the following parameters;


3. If the server is deployed on Alibaba Cloud or Amazon, port 6379 should be opened in the security group on the cloud platform;


4. Use the updated configuration file (according to the configuration file name) to start the redis service:

redis-server.exe redis.windows.conf

or

redis-server.exe redis.conf


   



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325853656&siteId=291194637