解决无法打开GitHub 和下载文件时出现 raw.githubusercontent.com无法连接的问题
可以通过修改电脑Hosts临时解决GitHub的http://raw.githubusercontent.com下载文件时无法链接的问题
通过http://IPAddress.com首页,输入http://raw.githubusercontent.com查询到真实IP地址
如:
185.199.108.133
185.199.109.133
185.199.110.133
185.199.111.133
有时候可能查到多个
然后打开 C:\Windows\System32\drivers\etc
hosts文件进行编辑,在文件最后添加以下内容并保存即可短期内打开
# GitHub Start
185.199.108.133 raw.githubusercontent.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
# GitHub End
注意:此方法仅能临时解决,目前还没有更好的替代办法~