执行后 [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
这台服务器是在内网,通过 nat 上网,这个有直接些影响吗?
#7 楼 @huacnlee curl https://ruby.taobao.org执行之后,显示的是页面源码,这样对吗?
#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
#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
#1 楼 @alphaliu https://ruby.taobao.org/可以打开没问题。