【汇总】raw.githubusercontent.com无法连接,文件无法下载

这很可能是域名解析的问题

因此,直接为域名配IP、修改host能解决问题。

 

Linux用户修改  /etc/hosts
windows用户修改  C:\WINDOWS\system32\drivers\etc\hosts

加入以下在配置

# GitHub hosts 
52.74.223.119      github.com 
203.98.7.65        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    avatars4.githubusercontent.com
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    avatars8.githubusercontent.com
151.101.185.194    github.global.ssl.fastly.net

DNS缓存刷新命令

ipconfig /flushdns

 

 

+++++++++++++++++++++++++++++++++++++++查询CDN IP+++++++++++++++++++++++++++++++++++++++

https://www.ipaddress.com/

查找最佳github IP,在输入框查找:

github-cloud.s3.amazonaws.com

github.com

assets-cdn.github.com

github.global.ssl.fastly.net

 

 

你可能感兴趣的:(【汇总】raw.githubusercontent.com无法连接,文件无法下载)