github加载不出来乱码修改hosts文件刷新缓存【亲测有效】

打开终端输入命令编辑hosts文件 

sudo vim /etc/hosts

加入github的DNS地址

github加载不出来乱码修改hosts文件刷新缓存【亲测有效】_第1张图片

#github
185.199.108.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
185.199.110.133 objects.githubusercontent.com
185.199.111.133 objects.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
185.199.109.133 objects.githubusercontent.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

140.82.112.3 github.com
151.101.1.6 github.global.ssl.fastly.net
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

140.82.121.4 github.com

在终端运行下面命令,刷新缓存 

sudo killall -HUP mDNSResponder

你可能感兴趣的:(github)