github访问不了问题解决

github访问不了问题解决

参考文章:

https://www.cnblogs.com/wanpi/p/14668174.html

1、获取github.com的ip

访问 https://github.com.ipaddress.com

140.82.112.4 github.com

2、获取github.global.ssl.fastly.net的ip

访问 https://websites.ipaddress.com/github.global.ssl.fastly.net

199.232.69.194 github.global.ssl.fastly.net

3、确定静态资源的ip

访问 https://websites.ipaddress.com/assets-cdn.github.com

185.199.108.153

185.199.109.153

185.199.110.153

185.199.111.153

4、/etc/hosts文件内添加内容

140.82.112.4 github.com

199.232.69.194 github.global.ssl.fastly.net

185.199.108.153 assets-cdn.github.com

185.199.109.153 assets-cdn.github.com

185.199.110.153 assets-cdn.github.com

185.199.111.153 assets-cdn.github.com

5、刷新dns

$ sudo killall -HUP mDNSResponder

你可能感兴趣的:(github访问不了问题解决)