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
 posted on 2022-02-16 11:39  Rannie`  阅读(315)  评论(0编辑  收藏  举报
去除动画
找回动画