Redis 5.0 :Could not connect to Redis at 172.16.18.33:6379: Connection refused

background:

Redis 5.0 is configured and started on host A (172.16.18.33), and an error is reported when connecting with Redis-cli -h 172.16.18.33 on host B (172.16.18.32)

Could not connect to Redis at 172.16.18.33:6379: Connection refused

the reason:

Configuration file redis.conf 

bind 127.0.0.1 cannot connect to the target machine

solve:

Set the IP behind bind to the real IP of the machine (bing 172.16.18.33), and restart the service to connect.

Guess you like

Origin blog.csdn.net/abcdu1/article/details/106149775