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

Posted zhang-san

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了curl: 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

以上是关于curl: Failed connect to 172.16.100.199:9200; 没有到主机的路由的主要内容,如果未能解决你的问题,请参考以下文章

curl: (7) Failed connect to localhost:9200; Connection refused

curl: (7) Failed connect to localhost:9200; Connection refused

curl: Failed to connect to raw.githubusercontent.com port 443: Connection refused

我遇到的错误curl: Failed to connect to 127.0.0.1 port 1086: Connection refused

curl: Failed to connect to 127.**** port 1080: Connection refused on WSL2

cURL Error:Failed connect to *****.com:80; Connection timed out