github访问慢

参考网址:https://www.cnblogs.com/sochishun/p/14505669.html
1.打开 https://ipaddress.com/website/github.com

2.找到ip

3.修改本地电脑系统 hosts 文件

Windows 系统中的文件路径:C:\WINDOWS\system32\drivers\etc
Linux 系统中的文件路径:/etc/hosts

最后一行加上 192.30.253.112 github.com

4.更新dns缓存(可以省略)

Windows 系统:ipconfig /flushdns
Linux 系统:systemctl restart nscd
Mac 系统:sudo dscacheutil -flushcache或sudo killall -HUP mDNSResponder

posted @ 2022-03-26 09:01  jqynr  阅读(23)  评论(0)    收藏  举报