国内 GitHub 访问慢的解决方法

发布时间: 更新时间: 总字数:222 阅读时间:1m 作者: IP上海 分享 网址

GitHub Proxy 代理加速、国内 GitHub 访问慢的解决方法–修改 /etc/hosts

镜像站

域名解析

github的访问速度慢的原因是以下引起的:

  • github.global.ssl.fastly.net
  • github.com

以上域名可以通过http://tool.chinaz.com/dns这个网站可以查看域名的TTL,选择最小的一个就是最有的。然后把ip放到host中。

方法一

151.101.13.194 github.global.ssl.fastly.net
192.30.253.112 github.com

192.30.255.117  api.github.com
151.101.129.69  cdn.sstatic.net
52.216.64.128   github-cloud.s3.amazonaws.com
151.101.44.249  github.global.ssl.fastly.net
192.30.255.113  github.com gist.github.com
151.101.72.133 assets-cdn.github.com avatars0.githubusercontent.com avatars1.githubusercontent.com avatars2.githubusercontent.com

192.30.253.112 github.com
192.30.253.113 github.com
151.101.184.133 assets-cdn.github.com
151.101.185.194 github.global.ssl.fastly.net
  • 刷新 DNS
ipconfig /flushdns

方法二

采用 https://github.com/Mosiki/githubhosts 解析。

方法三

采用代理:

git clone https://github.com/actions/toolkit.git
# 代理地址
git clone https://github.com.cnpmjs.org/actions/toolkit.git
Home Archives Categories Tags Statistics
本文总阅读量 次 本站总访问量 次 本站总访客数