现在将图片都放在了 码云 上了,所以暂时不会出现图片问题~ 。

手机图片问题除了 翻 ,有知道的小伙伴可以留言。

因为我是自己上传的 github ,然后打不开了,所以查了一下 ip 和相关文章。网上文章都是在 C:\Windows\System32\drivers\etc\hosts 文件中复制固定内容,不同网段的用户查到的 IP 可能不一样,所以需要自己去查,而不是简单的copy。

  • 首先检测是哪个链接问题,这里我是调整好的。

选择一个可以使用的 IP,在 C:\Windows\System32\drivers\etc\hosts 末尾 加上

在末尾加上

1
2
3
4
5
6
7
8
9
151.101.108.133 avatars0.githubusercontent.com 
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com

不同网段的用户查到的 IP 可能不一样,所以需要自己去查,而不是简单的copy,这是我最终的

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# GitHub Start 
192.30.253.112 github.com
192.30.253.119 gist.github.com
185.199.111.154 github.githubassets.com
185.199.108.154 github.githubassets.com
185.199.109.154 github.githubassets.com
185.199.110.154 github.githubassets.com
151.101.108.133 assets-cdn.github.com
151.101.108.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com

# GitHub End
  • 刷新 DNS

cmd 中输入ipconfig /flushdns 即可刷新,不行的话再重启电脑,这样就能成功打开github 或博客了,所有图片和内容都能加载。