1.获取 global.ssl.fastly地址
访问 http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo
获取cdn域名以及ip地址
2、获取github地址
访问 http://github.com.ipaddress.com/#ipinfo
获取cdn域名以及ip地址
3、打开hosts映射
Windows环境
C:\Windows\System32\drivers\etc\hosts
最末尾添加两句话,:
199.232.5.194 github.global.ssl.fastly.net
192.30.253.112 github.com
然后保存就可以了。
Linux环境
sudo gedit /etc/hosts