赞
踩
2021.8 博主已放弃修改host的办法,请换用其他方法
2021.3请参考解决Github打不开问题
同时请参考GitHub无法打开
推荐一个修改host的工具SwitchHosts! v3.5.8
原文粘贴如下
github最近的ip和cdn有变化,导致国内的用户无法登陆,本文记录一下解决办法。
记住下面3个网址
github网址查询:https://github.com.ipaddress.com/
github域名查询:https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
github静态资源ip:https://github.com.ipaddress.com/assets-cdn.github.com
依次打开上面网页
参考网站给出的ip修改host文件,在最后附上下面的内容
# My hosts
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.110.153 assets-cdn.github.com
185.199.111.153 assets-cdn.github.com
————————————————
版权声明:本文为CSDN博主「little_two_two」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yuxikuo_1/article/details/107302871
以下内容作废
修改Hosts文件
添加下面内容
2021.3作废 # GitHub Start 192.30.253.112 github.com 192.30.253.119 gist.github.com 151.101.184.133 assets-cdn.github.com 151.101.184.133 raw.githubusercontent.com 151.101.184.133 gist.githubusercontent.com 151.101.184.133 cloud.githubusercontent.com 151.101.184.133 camo.githubusercontent.com 151.101.184.133 avatars0.githubusercontent.com 151.101.184.133 avatars1.githubusercontent.com 151.101.184.133 avatars2.githubusercontent.com 151.101.184.133 avatars3.githubusercontent.com 151.101.184.133 avatars4.githubusercontent.com 151.101.184.133 avatars5.githubusercontent.com 151.101.184.133 avatars6.githubusercontent.com 151.101.184.133 avatars7.githubusercontent.com 151.101.184.133 avatars8.githubusercontent.com # GitHub End ———————————————— 版权声明:本文为CSDN博主「李晓nic」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_42128813/article/details/102915578
2020.3.10已放弃 # GitHub Start 192.30.253.112 github.com 192.30.253.119 gist.github.com 151.101.100.133 assets-cdn.github.com 151.101.100.133 raw.githubusercontent.com 151.101.100.133 gist.githubusercontent.com 151.101.100.133 cloud.githubusercontent.com 151.101.100.133 camo.githubusercontent.com 151.101.100.133 avatars0.githubusercontent.com 151.101.100.133 avatars1.githubusercontent.com 151.101.100.133 avatars2.githubusercontent.com 151.101.100.133 avatars3.githubusercontent.com 151.101.100.133 avatars4.githubusercontent.com 151.101.100.133 avatars5.githubusercontent.com 151.101.100.133 avatars6.githubusercontent.com 151.101.100.133 avatars7.githubusercontent.com 151.101.100.133 avatars8.githubusercontent.com # GitHub End [参考方案](https://www.cnblogs.com/liuleilei/p/6436093.html)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。