Redis connection appears Could not connect to Redis at xx.xx.xx.xx:6379: No route to host

The cause of this problem is the firewall:

[root@localhost bin]# ./redis-cli -h 192.168.25.153 -p 6379
Could not connect to Redis at 192.168.25.153:6379: No route to host
not connected> quit

[root@localhost bin]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@localhost bin]# 

Guess you like

Origin blog.csdn.net/u010503822/article/details/89065298