dongzhugao9929 2017-05-04 13:40 采纳率: 0%
浏览 1645

在centOS上curl命令失败

I'm using curl to communicate with api.digits.com on my dedicated server on centOS 7.2.

Until today, all worked fine. Now i'm facing an issue, the connection fail.

curl command

[root@serveur etc]# curl -Lv api.digits.com
* About to connect() to api.digits.com port 80 (#0)
*   Trying 192.44.68.9...
* Connection timed out
* Failed connect to api.digits.com:80; Connection timed out
* Closing connection 0
curl: (7) Failed connect to api.digits.com:80; Connection timed out

ping command

[root@serveur etc]# ping api.digits.com
PING api.digits.com (192.44.68.9) 56(84) bytes of data.
64 bytes from api.digits.com (192.44.68.9): icmp_seq=1 ttl=55 time=98.7 ms
64 bytes from api.digits.com (192.44.68.9): icmp_seq=2 ttl=55 time=98.7 ms
64 bytes from api.digits.com (192.44.68.9): icmp_seq=3 ttl=55 time=98.7 ms
64 bytes from api.digits.com (192.44.68.9): icmp_seq=4 ttl=55 time=98.8 ms
64 bytes from api.digits.com (192.44.68.9): icmp_seq=5 ttl=55 time=98.7 ms
64 bytes from api.digits.com (192.44.68.9): icmp_seq=6 ttl=55 time=108 ms
64 bytes from api.digits.com (192.44.68.9): icmp_seq=7 ttl=55 time=127 ms
^C
--- api.digits.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6009ms
rtt min/avg/max/mdev = 98.713/104.132/127.041/9.886 ms

I disabled the firewall, added rule on /etc/hosts (192.44.68.9 api.digits.com), the issue still occur.

Any idea on what can block the connection ?

  • 写回答

1条回答 默认 最新

  • qq_41623280 2024-01-08 14:46
    关注

    Verify that api.digits.com is indeed listening on port 80

    评论

报告相同问题?

悬赏问题

  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题