github 加速方法
1、进入 https://www.ipaddress.com/ 查询以下两个url对应的ip
github.global.ssl.fastly.net
github.com
注:
- 域名的ip有时候会变,如果发现网不行了来查一下,可能ip变了
2.修改hosts文件,添加:
151.101.121.194 github.global.ssl.fastly.net
140.82.121.3 github.com
注:
windows目录在 C:\Windows\System32\drivers\etc\hosts
mac/linux目录在:/etc/hosts
3、刷新
ipconfig /flushdns