github进不去的解决方案


1.确定ip

进入网址https://github.com.ipaddress.com

查看GitHub的ip地址。
image

2.确定域名ip

进入网址https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
image

3.确定静态资源ip

进入网址https://github.com.ipaddress.com/assets-cdn.github.com
image

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

4.修改hosts文件

Windows系统:打开C:\Windows\System32\drivers\etc

找到hosts文件
image
右键选择打开方式为记事本即可。
在底部加入前三步获得的内容,即:

140.82.114.3 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

注意:使用这种方式是不稳定的
实在不行,也可以使用pigcha加速器
下载地址:
http://www.pigcha.com/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM