赞
踩
ping github.com
会显示请求超时:
- PING github.com (192.30.253.112): 56 data bytes
- Request timeout for icmp_seq 0
- Request timeout for icmp_seq 1
- Request timeout for icmp_seq 2
- Request timeout for icmp_seq 3
- Request timeout for icmp_seq 4
- Request timeout for icmp_seq 5
网上搜了一通别人的解决方案都没有讲清楚重点!
github.com
然后注意下面显示的IP Address值。拼接成这样的形式下面会用到:
140.82.114.3 github.com
github.global.ssl.fastly.net
也会查询到一个IP地址,然后同样拼接成这个形式等下会用到:
199.232.69.194 github.global.ssl.fastly.net
下面是在终端进行的操作:
sudo vi /etc/hosts
- 140.82.114.3 github.com
- 199.232.69.194 github.global.ssl.fastly.net
3. 配置完成之后按下esc键,然后输入:wq保存退出即可!
确保下是否配置真的完成,在终端输入以下命令可以查看:
sudo cat /etc/hosts
再ping github.com
- PING github.com (140.82.112.4): 56 data bytes
- 64 bytes from 140.82.112.4: icmp_seq=0 ttl=47 time=337.978 ms
- 64 bytes from 140.82.112.4: icmp_seq=1 ttl=47 time=336.523 ms
- 64 bytes from 140.82.112.4: icmp_seq=2 ttl=47 time=201.958 ms
- 64 bytes from 140.82.112.4: icmp_seq=3 ttl=47 time=206.383 ms
- 64 bytes from 140.82.112.4: icmp_seq=4 ttl=47 time=304.305 ms
- ^C
- --- github.com ping statistics ---
就通啦!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。