在 centos 上添加淘宝的源,始终是报错,不知道该怎么处理了。各位大神给解解。
[root@CentOS etc]# gem sources --add https://ruby.taobao.org/ Error fetching https://ruby.taobao.org/: Errno::ETIMEDOUT: Connection timed out - connect(2) for "ruby.taobao.org" port 443 (https://ruby.taobao.org/specs.4.8.gz)
#4 楼 @easonlovewan 尝试 ping ruby.taobao.org 可以 ping 通。
[root@CentOS etc]# ping ruby.taobao.org PING ruby.taobao.org (223.6.253.37) 56(84) bytes of data. 64 bytes from 223.6.253.37: icmp_seq=1 ttl=33 time=60.4 ms 64 bytes from 223.6.253.37: icmp_seq=2 ttl=33 time=57.3 ms 64 bytes from 223.6.253.37: icmp_seq=3 ttl=33 time=57.8 ms 64 bytes from 223.6.253.37: icmp_seq=4 ttl=33 time=57.4 ms 64 bytes from 223.6.253.37: icmp_seq=5 ttl=33 time=59.7 ms 64 bytes from 223.6.253.37: icmp_seq=6 ttl=33 time=57.4 ms 64 bytes from 223.6.253.37: icmp_seq=7 ttl=33 time=57.4 ms
#4 楼 @easonlovewan #3 楼 @alphaliu
尝试 ping ruby.taobao.org 可以 ping 通。
[root@CentOS etc]# ping ruby.taobao.org PING ruby.taobao.org (223.6.253.37) 56(84) bytes of data. 64 bytes from 223.6.253.37: icmp_seq=1 ttl=33 time=60.4 ms 64 bytes from 223.6.253.37: icmp_seq=2 ttl=33 time=57.3 ms 64 bytes from 223.6.253.37: icmp_seq=3 ttl=33 time=57.8 ms 64 bytes from 223.6.253.37: icmp_seq=4 ttl=33 time=57.4 ms 64 bytes from 223.6.253.37: icmp_seq=5 ttl=33 time=59.7 ms 64 bytes from 223.6.253.37: icmp_seq=6 ttl=33 time=57.4 ms 64 bytes from 223.6.253.37: icmp_seq=7 ttl=33 time=57.4 ms
执行后 [root@CentOS ~]# curl -LI https://ruby.taobao.org/specs.4.8.gz HTTP/1.1 302 Moved Temporarily Server: nginx/1.4.7 Date: Tue, 27 Oct 2015 03:36:23 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz
HTTP/1.1 200 OK Server: AliyunOSS Date: Tue, 27 Oct 2015 03:36:29 GMT Content-Type: application/gzip Content-Length: 2585617 Connection: keep-alive x-oss-request-id: 562EF13DB295346D4CF15B4F Accept-Ranges: bytes ETag: "43C7E162D73A0E192DDB4770903E3245" Last-Modified: Tue, 27 Oct 2015 03:31:21 GMT x-oss-object-type: Normal