Github无法显示图片问题解决方案

本来想利用github搭个测试分发平台,结果照片不显示,文件拿不到!

记得前段时间时间还可以后来就不行了,尴尬癌犯了,非得把它搞出来,一查还真有解决方案:

1 Mac终端

sudo vi /etc/hosts

2 会提示你输入开机密码   ->输入密码

 

3    shift + i 进入编辑模式 并将下面的内容拷贝进去 然后ESC  再  :wq (这步操作同 pods)

Github无法显示图片问题解决方案_第1张图片

# GitHub Start
140.82.114.4 github.com
140.82.114.4 gist.github.com
185.199.108.153 assets-cdn.github.com
151.101.64.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com 
# GitHub End

4 再去打开github 图片加载出来了

5

你可能感兴趣的:(iOS开发)