Skip to content

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

@ly2011

Description

@ly2011
Owner

完美解决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速度

Activity

maxwang967

maxwang967 commented on Mar 17, 2020

@maxwang967

没什么太大的效果...

CatNofishing

CatNofishing commented on Mar 25, 2020

@CatNofishing

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

CatNofishing

CatNofishing commented on Apr 1, 2020

@CatNofishing

完美解决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

cheny0y0 commented on Jun 16, 2020

@cheny0y0

iPad求助

liaoxuewei

liaoxuewei commented on Jan 6, 2021

@liaoxuewei

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

DaDaQingFeng

DaDaQingFeng commented on Mar 24, 2021

@DaDaQingFeng

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

configlab

configlab commented on Apr 13, 2021

@configlab

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

configlab

configlab commented on Apr 13, 2021

@configlab

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @liaoxuewei@DaDaQingFeng@ly2011@configlab@CatNofishing

        Issue actions

          完美解决github访问速度慢 · Issue #126 · ly2011/blog