国内网络`GitHub`加速

Summary: Author: 张亚飞 | 阅读时间: 1 minute read | Published: 2016-05-17
Filed under Categories: LinuxTags: Note,

GitHub 下载加速

GitHub DNS 解析优化

解决国内访问GitHub速度慢的问题.

问题:

访问 GitHub 速度很慢

使用 git clone 克隆代码速度慢

解决方案

修改 /etc/hosts 文件,添加:

192.30.253.112 github.com
192.30.253.118 gist.github.com
151.101.112.133 assets-cdn.github.com
151.101.184.133 raw.githubusercontent.com
151.101.112.133 gist.githubusercontent.com
151.101.184.133 cloud.githubusercontent.com
151.101.112.133 camo.githubusercontent.com
151.101.112.133 avatars0.githubusercontent.com
151.101.112.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.12.133 avatars3.githubusercontent.com
151.101.12.133 avatars4.githubusercontent.com
151.101.184.133 avatars5.githubusercontent.com
151.101.184.133 avatars6.githubusercontent.com
151.101.184.133 avatars7.githubusercontent.com
151.101.12.133 avatars8.githubusercontent.com 

注意: 访问IPAddress.com使用IP Lookup工具可以获得这个域名的IP地址.

Comments

Cor-Ethan, the beverage → www.iirii.com