git速度太慢


适用各种操作系统,本次测试于ubuntu,下载速度从二十几k提高到二百多k

1、查找域名对应的ip地址,并修改hosts文件

nslookup github.global.ssl.fastly.Net
nslookup github.com
1
2


将下列内容加入 /etc/hosts文件中

151.101.76.249 http://global-ssl.fastly.net
192.30.255.113 http://github.com #此处112还是113根据自己的情况调整?
1
2
3
2、刷新DNS缓存
linux:

sudo /etc/init.d/networking restart
1
windows:

ipconfig /flushdns
1
参考:
http://www.linuxidc.com/Linux/2017-10/148116.htm

http://blog.csdn.net/blgmh/article/details/74531982
---------------------
作者:Leather_Wang
来源:CSDN
原文:https://blog.csdn.net/hzwwpgmwy/article/details/79043251
版权声明:本文为博主原创文章,转载请附上博文链接!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM