如果我尝试使用 PEAR 进行任何操作,我会得到:
# pear list-all
Connection to `pear.php.net:80' failed: Connection timed out
如果我 ping 它,我会得到以下信息:
# ping pear.php.net
PING euk1.php.net (5.77.39.20) 56(84) bytes of data.
我也尝试过在 URL 上进行托管和挖掘:
# host pear.php.net
pear.php.net is an alias for euk1.php.net.
euk1.php.net has address 5.77.39.20
# dig pear.php.net
; <<>> DiG 9.7.3 <<>> pear.php.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5866
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;pear.php.net. IN A
;; ANSWER SECTION:
pear.php.net. 292 IN CNAME euk1.php.net.
euk1.php.net. 292 IN A 5.77.39.20
;; Query time: 0 msec
;; SERVER: 85.119.80.232#53(85.119.80.232)
;; WHEN: Mon Dec 3 11:45:33 2012
;; MSG SIZE rcvd: 65
如果我使用 curl pear.php.net,我会得到连接超时,但如果我尝试 curl www.google.co.uk,我会得到响应。我不太确定 iptables,但也记录了它的输出:
# iptables -n -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
有谁知道该尝试什么或观察什么来解决这个问题吗?
答案1
我可以毫无问题地 ping 此地址,所以可能是您网络中某处的防火墙出了问题,或者是互联网连接出了问题。您可以使用命令来诊断此问题
traceroute pear.php.net
或者
mtr pear.php.net