Aparece la conexión de Redis No se pudo conectar a Redis en xx.xx.xx.xx: 6379: No hay ruta al host

La causa de este problema es el 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]# 

Supongo que te gusta

Origin blog.csdn.net/u010503822/article/details/89065298
Recomendado
Clasificación