Skip to content

GitHub 图片加载不出来怎么办 #6

Open
@CatOneTwo

Description

@CatOneTwo

打开 GitHub 发现图片加载不出来,参考网上改 hosts 文件,亲测有效

打开路径 C:\Windows\System32\drivers\etc 下的 hosts 文件(可以右击以管理员身份打开)

添加下面的语句

# GitHub Start 
192.30.253.112 Build software better, together 
192.30.253.119 gist.github.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 Build software better, together
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 Build software better, together

如图,保存

刷新github页面,图片就加载出来了!

注意👀:如果保存不了页面,可以试试右击文件,打开属性改变文件权限


返回目录:GitHub 入门教程

Metadata

Metadata

Assignees

No one assigned

    Labels

    修复修复系列

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions