解决GIthub作为图床无法加载显示图片问题

昨天折腾 Github+uPic+Typora解决Markdown图床问题的时候,发现Github作为图床无法加载显示图片,就暂时用Gitee和SM.MS替了,但这些都是有流量显示,也并有Github稳定。
Gitee是国内厂商,完全照抄Github,但并不能像Github一样无容量限制,而SM.MS可能部分时候还是没有GIthub稳定。
最后还是对Github作为图床无法加载显示图片的问题,进行了解决。
修改Hots文件

终端: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 保存Hots文件
4.在刷新下浏览器就OK了,能很好的从Github远程保存图片到本地目录。
至此GIthub作为图床无法加载显示图片问题就全部解决了。

再来解决Github国内访问速度慢的问题

使用CDN加速,Jsdlive就是非常好用的免费CDN加速

https://cdn.jsdelivr.net/gh/你的用户名/你的仓库名@发布的版本号/文件路径
github-免费好用的图床.png
uPic截图上传至图床
CDN加速解决Github速度问题

参考Tryora + Upic + Sm.Ms 解决Markdown图片上传与储存问题

你可能感兴趣的:(解决GIthub作为图床无法加载显示图片问题)