-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
完美解决github访问速度慢
修改host
其实
git clone
或者git push
特别慢,并不是因为http://github.com
的这个域名被限制了。而是http://github.global.ssl.fastly.Net
这个域名被限制了。那么首先查到这个域名的ip,然后在hosts文件中进行ip -> 域名
映射就可以了。
-
- 修改本地hosts文件
windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts
mac/linux系统的hosts文件的位置如下:/etc/hosts
-
- 增加github.global.ssl.fastly.net和github.com的映射
获取Github相关网站的ip
访问 https://www.ipaddress.com
,拉下来,找到页面中下方的 IP Address Tools – Quick Links
分别输入 github.global.ssl.fastly.net
和 github.com
,查询ip地址
151.101.113.194 github.global.ssl.fastly.net
192.30.253.112 github.com
参考文件
linrongbin16 and 404mj
Metadata
Metadata
Assignees
Labels
Projects
Milestone
Relationships
Development
Select code repository
Activity
maxwang967 commentedon Mar 17, 2020
没什么太大的效果...
CatNofishing commentedon Mar 25, 2020
没什么太大的效果,简直网上博客解决办法如出一辙,真正的原因是即使改hosts,服务器离大陆也很远,照样慢
CatNofishing commentedon Apr 1, 2020
下载速度还是很慢
cheny0y0 commentedon Jun 16, 2020
iPad求助
liaoxuewei commentedon Jan 6, 2021
哪里有IP Address Tools – Quick Links。。。
DaDaQingFeng commentedon Mar 24, 2021
完美解决方法,逛github就像逛街😂:https://blog.csdn.net/what951006/article/details/110115023
configlab commentedon Apr 13, 2021
对于大部分用户还是有用的,主要是站点或cdn的IP变化。同类问题已经提供一个获取最新用于设置hosts的小工具: 网站提速必备-查找国际站点最新IP并设置hosts
configlab commentedon Apr 13, 2021
对于大部分用户还是有用的,主要是站点或cdn的IP变化。同类问题已经提供一个获取最新用于设置hosts的小工具: 网站提速必备-查找国际站点最新IP并设置hosts