github无法访问
在工作中,有时候github会无法访问到,可能是国内DNS指向ip地址不对。
可以通过以下方式进行解析
查询真实IP
通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址
windows
C:\Windows\System32\drivers\etc\hosts 添加
199.232.4.133 raw.githubusercontent.com
CentOS及macOS直接在终端输入
sudo vi /etc/hosts
添加以下内容保存即可
199.232.4.133 raw.githubusercontent.com