最近发现Github无法加载或不显示图片,严重影响日常使用。查找资料并总结解决步骤如下:
1.Mac终端输入sudo vi /etc/hosts
2.输入密码后,点击 i
键,进入Insert模式,将下面内容拷贝进去
# GitHub Start
192.30.253.112 github.com
192.30.253.119 gist.github.com
199.232.28.133 assets-cdn.github.com
199.232.28.133 raw.githubusercontent.com
199.232.28.133 gist.githubusercontent.com
199.232.28.133 cloud.githubusercontent.com
199.232.28.133 camo.githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 avatars4.githubusercontent.com
199.232.28.133 avatars5.githubusercontent.com
199.232.28.133 avatars6.githubusercontent.com
199.232.28.133 avatars7.githubusercontent.com
199.232.28.133 avatars8.githubusercontent.com# GitHub End
3.点击esc
键,然后输入:wq
保存退出即可。
4.再去打开或刷新Github页面,图片已经可以加载出来了。