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