解决github无法加载图片的问题

更新于:2020年12月18日 10:42:04

不知道从什么时候开始,github上面的图片访问不了了,今天突然发现解决方案,所以转载一下,并提取其中的一个方法,原文链接在最下面。

解决方法

修改hosts文件,添加以下。

  • hosts 文件所在目录:
    • [win:] C:\Windows\System32\drivers\etc\hosts
    • [Mac:] /etc/hosts
    • [Linux:] /etc/hosts
# GitHub Start 
140.82.114.4 github.com 
140.82.114.3 gist.github.com 
185.199.108.153 assets-cdn.github.com
185.199.109.153 assets-cdn.github.com 
185.199.110.153 assets-cdn.github.com 
185.199.111.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 
199.232.68.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 
# GitHub End

原文链接

posted @   强里秋千墙外道  阅读(28)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示