解决国内raw.githubusercontent.com访问不了

解决国内raw.githubusercontent.com访问不了

admin
2021-05-03 / 0 评论 / 47 阅读 / 正在检测是否收录...

简单的说就是域名被DNS污染了

Windows

在hosts文件加上:199.232.4.133 raw.githubusercontent.com

ko7egj72.png

这样就行了

ko7egv8z.png

Linux

执行下面命令编辑hosts文件

sudo vi /etc/hosts

# GitHub Start
52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
# GitHub End

这样就行了

ko7ehxg7.png

0

评论 (0)

取消