查询网址的IP
打开IP查询网站: https://www.ipaddress.com/
分别输入并查询 github.com 和 github.global.ssl.fastly.net 网址的 IP
输入并查询
修改hosts文件
在末尾添加并保存
Windows
C:\Windows\System32\drivers\etc\hosts
Linux
\etc\hosts
# GitHub Start
140.82.114.4 github.com
199.232.69.194 github.global.ssl.fastly.net
# GitHub End
刷新DNS
Windows
打开CMD命令提示符, 输入以下指令,刷新 DNS 解析缓存
ipconfig /flushdns
Linux
sudo rcnscd restart
扫描二维码关注公众号,回复:
12431392 查看本文章
