赞
踩
https://www.jianshu.com/p/3f6477049ece
git clone特别慢是因为github.global.ssl.fastly.net域名被限制了。
只要找到这个域名对应的ip地址,然后在hosts文件中加上ip–>域名的映射,刷新DNS缓存便可。
在网站 https://www.ipaddress.com/ 分别搜索:
github.global.ssl.fastly.net
github.com
github.global.ssl.fastly.net的ip:199.232.69.194
github.com的ip:140.82.112.4
打开hosts文件
Windows上的hosts文件路径在C:\Windows\System32\drivers\etc\hosts
Linux的hosts文件路径在:sudo vim /etc/hosts
在hosts文件末尾添加两行(对应上面查到的ip)
199.232.69.194 github.global-ssl.fastly.net
140.82.112.4 github.com
Winodws系统的做法:打开CMD,输入
ipconfig /flushdns
Linux的做法:在终端输入
sudo /etc/init.d/networking restart
=======================
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。