Skip to content

完美解决github访问速度慢 #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ly2011 opened this issue Dec 28, 2018 · 8 comments
Open

完美解决github访问速度慢 #126

ly2011 opened this issue Dec 28, 2018 · 8 comments
Labels

Comments

@ly2011
Copy link
Owner

ly2011 commented Dec 28, 2018

完美解决github访问速度慢

修改host

其实 git clone 或者 git push 特别慢,并不是因为 http://github.com 的这个域名被限制了。而是 http://github.global.ssl.fastly.Net 这个域名被限制了。那么首先查到这个域名的ip,然后在hosts文件中进行 ip -> 域名 映射就可以了。

    1. 修改本地hosts文件

windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts

mac/linux系统的hosts文件的位置如下:/etc/hosts

    1. 增加github.global.ssl.fastly.net和github.com的映射

获取Github相关网站的ip

访问 https://www.ipaddress.com,拉下来,找到页面中下方的 IP Address Tools – Quick Links

分别输入 github.global.ssl.fastly.netgithub.com,查询ip地址

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

参考文件

  1. 完美解决github访问速度慢
  2. 通过代理工具提高Github Clone速度
@ly2011 ly2011 added the Github label Dec 28, 2018
@maxwang967
Copy link

没什么太大的效果...

@CatNofishing
Copy link

没什么太大的效果,简直网上博客解决办法如出一辙,真正的原因是即使改hosts,服务器离大陆也很远,照样慢

@CatNofishing
Copy link

完美解决github访问速度慢

修改host

其实 git clone 或者 git push 特别慢,并不是因为 http://github.com 的这个域名被限制了。而是 http://github.global.ssl.fastly.Net 这个域名被限制了。那么首先查到这个域名的ip,然后在hosts文件中进行 ip -> 域名 映射就可以了。

    1. 修改本地hosts文件

windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts

mac/linux系统的hosts文件的位置如下:/etc/hosts

    1. 增加github.global.ssl.fastly.net和github.com的映射

获取Github相关网站的ip

访问 https://www.ipaddress.com,拉下来,找到页面中下方的 IP Address Tools – Quick Links

分别输入 github.global.ssl.fastly.netgithub.com,查询ip地址

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

参考文件

  1. 完美解决github访问速度慢
  2. 通过代理工具提高Github Clone速度

下载速度还是很慢

@cheny0y0
Copy link

iPad求助

@liaoxuewei
Copy link

哪里有IP Address Tools – Quick Links。。。

@DaDaQingFeng
Copy link

完美解决方法,逛github就像逛街😂:https://blog.csdn.net/what951006/article/details/110115023

@configlab
Copy link

对于大部分用户还是有用的,主要是站点或cdn的IP变化。同类问题已经提供一个获取最新用于设置hosts的小工具: 网站提速必备-查找国际站点最新IP并设置hosts

1 similar comment
@configlab
Copy link

对于大部分用户还是有用的,主要是站点或cdn的IP变化。同类问题已经提供一个获取最新用于设置hosts的小工具: 网站提速必备-查找国际站点最新IP并设置hosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants