redis連接出現Could not connect to Redis at xx.xx.xx.xx:6379: No route to host解決方法

引起這個問題的原因是防火牆:

[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]# 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章