Home  >  Q&A  >  body text

程序员 - curl、traceroute等操作总是15秒左右才有返回

在CentOS服务器上面:

1、curl http://xxxx.xxx
2、traceroute yyy.yyy

以上操作大多数情况下,需要15秒才有返回,即使访问的是本机,这是什么情况?
域名解析的问题已经排除。

淡淡烟草味淡淡烟草味2733 days ago888

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-25 09:03:14

    The curl here is http, and the traceroute is icmp. From the protocol point of view, they are independent protocols. Since your domain name resolution problem has been eliminated, you can be more suspicious of whether there is packet loss and slow network connectivity in the network connectivity itself. Posting a detailed execution process log will make it easier to analyze, and also explain your server's network topology and local network conditions.

    reply
    0
  • Cancelreply