问题描述
大家好,
我正在使用linux debian服务器
当我在命令表单上键入 curl http://google.com 时
我将收到错误返回 curl:(28)connect()超时!
但是当我键入 ping google.com
它恢复正常
来自muc03s02-in-f23.1e100.net(173.194.35.183)中的64个字节:icmp_req = 1 ttl = 54 time = 13.3 ms
来自muc03s02-in-f23.1e100.net(173.194.35.183)中的64个字节:icmp_req = 2 ttl = 54 time = 13.2 ms
那么,有什么问题呢?以及我该如何解决?
谢谢!
Hi all,
i am using linux debian server
when i type : curl http://google.com on my command form
i will get an error return curl: (28) connect() timed out!
but when i type ping google.com
it repply normaly
64 bytes from muc03s02-in-f23.1e100.net (173.194.35.183): icmp_req=1 ttl=54 time=13.3 ms
64 bytes from muc03s02-in-f23.1e100.net (173.194.35.183): icmp_req=2 ttl=54 time=13.2 ms
so , what is problem ? and how can i fix it ?
thank !
推荐答案
curl http://www.google.com
curl -v http://www.google.com
还要确保您不在计算机上使用代理.
Also make sure you are not using a proxy on your machine.
这篇关于Linux curl命令问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!