码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-05-24 20:37:32      阅读:2174      评论:0      收藏:0      [点我收藏+]

标签:print   curl   systemctl   kconfig   sys   pre   centos   table   防火   

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

Ubuntu

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

centos6

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

centos7

  • 查看防火墙状态
firewall-cmd --state
  • 关闭防火墙
systemctl stop firewalld.service

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

标签:print   curl   systemctl   kconfig   sys   pre   centos   table   防火   

原文地址:https://www.cnblogs.com/nr-zhang/p/9084820.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!