Mac 下Github 图片无法显示解决方案

最近发现Github图片无法加载或者显示异常,查资料后发现修改Host即可解决。
解决方法如下:
打开Finder, 按快捷键组合 Shift+Command+G,输入 Hosts 文件的所在路径:/etc/hosts

 
Host 文件地址

点击前往,即可在 Finder 窗口中可以看到 Hosts 文件

 

 
hosts 文件

双击打开,输入一下信息:

# GitHub Start
192.30.253.112 Build software better, together
192.30.253.119 gist.github.com
199.232.96.133 avatars.githubusercontent.com
199.232.96.133 user-images.githubusercontent.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

保存

搞定

posted @ 2021-02-23 10:20  crane13  阅读(175)  评论(0编辑  收藏  举报