本地配置hosts快速访问GitHub

首先需要找到hosts文件路径

C:\Windows\System32\drivers\etc\hosts

接下来是修改配置
1.添加hosts配置

140.82.112.4 github.com
199.232.69.194 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

2.通过以下网站获取所有github网址的IP地址

https://github.com.ipaddress.com/
https://fastly.net.ipaddress.com/github.global.ssl.fastly.net
https://github.com.ipaddress.com/assets-cdn.github.com

最后需要打开cmd刷新DNS缓存

ipconfig /flushdns

这样操作下来最终会生效。

上一篇:github多次打开失败解决办法


下一篇:ET5.0 配置Excel