Github无法访问,修改host教程
问题
github访问速度过慢或者无法访问
原因
国内大内网对于国外一些网站进行阻隔,导致一些网站被误伤
解决方法
修改github的host地址
- 修改host
sudo gedit /etc/hosts
- github host地址
140.82.113.4 github.com
185.199.108.133 githubusercontent.com
199.232.69.194 fastly.net
185.199.110.153 githubstatus.com
140.82.112.4 github.com
140.82.113.3 gist.github.com
185.199.108.153 assets-cdn.github.com
199.232.68.133 raw.githubusercontent.com
199.232.68.133 gist.githubusercontent.com
199.232.68.133 cloud.githubusercontent.com
151.101.192.133 camo.githubusercontent.com
199.232.68.133 avatars0.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars3.githubusercontent.com
199.232.68.133 avatars4.githubusercontent.com
199.232.68.133 avatars5.githubusercontent.com
199.232.68.133 avatars6.githubusercontent.com
199.232.68.133 avatars7.githubusercontent.com
199.232.68.133 avatars8.githubusercontent.com
此处评论已关闭