GitHub访问提速


在本地host文件中添加映射,步骤如下:
用文本编辑器打开hosts文件,位于C:\Windows\System32\drivers\etc目录下
打开 http://tool.chinaz.com/dns ,这是一个查询域名映射关系的工具,选一个延迟小的添加到hosts文件中,例如:

192.30.253.112 assets-cdn.github.com
151.101.88.249 github.global.ssl.fastly.net
192.30.253.112 github.com 
192.30.253.113 github.com 
192.30.253.119 gist.github.com 
151.101.185.194 github.global.ssl.fastly.net
151.101.100.133 assets-cdn.github.com 
151.101.100.133 raw.githubusercontent.com 
151.101.100.133 gist.githubusercontent.com 
151.101.100.133 cloud.githubusercontent.com 
151.101.100.133 camo.githubusercontent.com 
151.101.100.133 avatars0.githubusercontent.com 
151.101.100.133 avatars1.githubusercontent.com 
151.101.100.133 avatars2.githubusercontent.com 
151.101.100.133 avatars3.githubusercontent.com 
151.101.100.133 avatars4.githubusercontent.com 
151.101.100.133 avatars5.githubusercontent.com 
151.101.100.133 avatars6.githubusercontent.com 
151.101.100.133 avatars7.githubusercontent.com 
151.101.100.133 avatars8.githubusercontent.com 


以上方法来自互联网,实测并没有什么用。有效的方法为:

1、用数据流量而不是宽带网络(尤其是校园网)来访问;

2、需要下载大文件时,推荐使用服务器来下载,例如Vultr,从github网站将zip直接wget到服务器网速平均40MB/s,从服务器到本地,那就得看本事了。(直接scp也可以,但是偶尔会不稳定。最好的方法是从Vultr转到国内的云,然后基本可以全速下载了。)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值