curl: (7) Failed connect to 172.16.100.199:9200; 没有到主机的路由


没有到主机的路由这种问题很常见,多数是由机器的防火墙没有关闭。

Ubuntu

  • 查看防火墙状态
ufw status
  • 关闭防火墙
ufw disable

centos6

  • 查看防火墙状态
service iptables status
  • 关闭防火墙
chkconfig iptables off 

centos7

  • 查看防火墙状态
firewall-cmd --state
  • 临时关闭防火墙
systemctl stop firewalld.service
  • 永久关闭防火墙
systemctl disable firewalld


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM