GitHub无法访问或访问慢的问题
2019-04-03 本文已影响175人
swift_honor
d1dc1d0071c4bee1ac37d417eff56a3e.jpg
image.png
通过百度查找解决方案为(以下操作均在Mac OS系统):
1,打开hosts文件进行修改:open /etc/hosts
在hosts
文件的最后一行,添加以下几行(如果遇到权限问题,可以修改对应文件夹的权限为'读写')。
#Github
151.101.73.194 github.global.ssl.fastly.net
151.101.108.133 assets-cdn.github.com
185.199.111.153 documentcloud.github.com
185.199.110.153 documentcloud.github.com
185.199.109.153 documentcloud.github.com
185.199.108.153 documentcloud.github.com
192.30.253.113 github.com
192.30.253.112 github.com
192.30.253.119 gist.github.com
192.30.253.118 gist.github.com
185.199.111.153 help.github.com
185.199.110.153 help.github.com
185.199.109.153 help.github.com
185.199.108.153 help.github.com
192.30.253.121 nodeload.github.com
192.30.253.120 nodeload.github.com
151.101.108.133 raw.github.com
18.204.240.114 status.github.com
18.211.136.12 status.github.com
18.211.136.12 status.github.com
192.30.253.166 training.github.com
151.101.109.194 github.global.ssl.fastly.net
151.101.108.133 avatars0.githubusercontent.com
151.101.72.133 avatars1.githubusercontent.com
image.png