解决办法:
1. 打开
https://github.com.ipaddress.com/ 如下图:
2.打开
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo 如下图:
3.打开
https://github.com.ipaddress.com/assets-cdn.github.com 如下图:
4.打开电脑的hosts文件,把下列的东东写在最后,然后保存即可
140.82.113.4(图1的IP Address) github.com
199.232.69.194(图2的IP Address) github.global.ssl.fastly.net
185.199.108.153(图3的IP Address) assets-cdn.github.com
185.199.109.153(图3的IP Address) assets-cdn.github.com
185.199.110.153(图3的IP Address) assets-cdn.github.com
185.199.111.153(图3的IP Address) assets-cdn.github.com
mac系统怎么打开hosts文件|
1.终端输入 “sudo vi /private/etc/hosts” ,并按下“Enter键”跳出要求你输入管理者密码,这个密码:就是开机时登入OS X时输入的密码,输入后直接按下“Enter键”即可
效果如图:
5.在终端在输以下指令刷新DNS(需要权限)
sudo killall -HUP mDNSResponder;say DNS cache has been flushed