centos7 git下载速度慢


nslookup命令

yum -y install bind-utils
[root@iZ1i4qd6oynml0Z ~]# nslookup github.global.ssl.fastly.Net
Server:		100.100.2.136
Address:	100.100.2.136#53

Non-authoritative answer:
Name:	github.global.ssl.fastly.Net
Address: 199.59.149.244
;; Got SERVFAIL reply from 100.100.2.136, trying next server
** server can't find github.global.ssl.fastly.Net: SERVFAIL

[root@iZ1i4qd6oynml0Z ~]# nslookup github.com 
Server:		100.100.2.136
Address:	100.100.2.136#53

Non-authoritative answer:
Name:	github.com
Address: 13.229.188.59

vim /etc/hosts,修改host,加入下面代码:

199.59.149.244 github.global.ssl.fastly.net
13.229.188.59 github.com

刷新网络设置

/etc/init.d/network restart

虽然还是只有20kb/s,但比5kb/s好多了


免责声明!

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



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