解决github无法显示图片的问题

我在使用github的过程中,一直无法成功的显示图片;一开始以为是自己的网络问题,后面发现是hosts文件的配置没对。

mac的hosts文件路径:/etc/hosts

windows的hosts文件路径:C:\Windows\System32\drivers\etc\hosts

具体的hosts文件配置如下:

# GitHub Start

140.82.113.3        github.com

140.82.114.20      gist.github.com

199.232.28.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

199.232.68.133     avatars0.githubusercontent.com

199.232.28.133     avatars1.githubusercontent.com

151.101.184.133      avatars1.githubusercontent.com

151.101.184.133      avatars2.githubusercontent.com

199.232.28.133     avatars2.githubusercontent.com

151.101.184.133      avatars3.githubusercontent.com

199.232.68.133     avatars3.githubusercontent.com

151.101.184.133      avatars4.githubusercontent.com

199.232.68.133     avatars4.githubusercontent.com

151.101.184.133      avatars5.githubusercontent.com

199.232.68.133     avatars5.githubusercontent.com

151.101.184.133      avatars6.githubusercontent.com

199.232.68.133     avatars6.githubusercontent.com

151.101.184.133      avatars7.githubusercontent.com

199.232.68.133     avatars7.githubusercontent.com

151.101.184.133      avatars8.githubusercontent.com

199.232.68.133     avatars8.githubusercontent.com

 

# GitHub End

 

posted @ 2021-01-24 23:30  文十七  阅读(135)  评论(1编辑  收藏  举报