偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

git clone速度太慢的解決辦法

系統(tǒng) Linux
在國(guó)內(nèi),你們肯定發(fā)現(xiàn)使用git clone的速度實(shí)在太慢,git clone的速度可能會(huì)讓你難以承受,現(xiàn)再次整理解決方法與大家分享,有圖有真相。

在國(guó)內(nèi),你們肯定發(fā)現(xiàn)使用git clone的速度實(shí)在太慢,git clone的速度可能會(huì)讓你難以承受,現(xiàn)再次整理解決方法與大家分享,有圖有真相。

[[325366]]

原因:git clone特別慢是因?yàn)間ithub.global.ssl.fastly.net域名被限制了。只要找到這個(gè)域名對(duì)應(yīng)的ip地址,然后在hosts文件中加上ip–>域名的映射,刷新DNS緩存便可。

適用各種操作系統(tǒng),本次測(cè)試系統(tǒng)為Ubuntu 18.04.2 LTS,下載速度從幾k提高到1M多。

沒(méi)有修改前git clone速度實(shí)在慢只有10K左右,如上圖。

修改后,git clone速度達(dá)到800多k?;蛘?M多。

1、查找域名對(duì)應(yīng)的ip地址,并修改hosts文件

linuxidc@linuxidc:~/linuxidc.com$ nslookup github.global.ssl.fastly.Net

Server:  127.0.0.53

Address: 127.0.0.53#53

Non-authoritative answer:

Name: github.global.ssl.fastly.Net

Address: 151.101.229.194

linuxidc@linuxidc:~/linuxidc.com$ nslookup github.com

Server:  127.0.0.53

Address: 127.0.0.53#53

Non-authoritative answer:

Name: github.com

Address: 13.229.188.59

如下圖:

然后修改hosts文件

Windows上的hosts文件路徑在

C:\Windows\System32\drivers\etc\hosts

Linux的hosts文件路徑在/etc/hosts中

sudo vim /etc/hosts

Mac的hosts文件路徑也在/etc/hosts中

sudo vi /etc/hosts

在hosts文件末尾添加兩行

github.com 13.229.188.59

github.global.ssl.fastly.Net 151.101.229.194

2、刷新DNS緩存

Linux:

sudo /etc/init.d/networking restart

Windows:

ipconfig /flushdns

Mac:

sudo killall -HUP mDNSResponder

以前的文章:git clone下載速度特慢的解決方案 https://www.linuxidc.com/Linux/2017-10/148116.htm 

 

責(zé)任編輯:龐桂玉 來(lái)源: Linux公社
相關(guān)推薦

2023-09-02 20:13:01

代碼網(wǎng)速

2009-01-14 09:16:24

SQL Server查SQL Server查SQL Server

2009-06-03 16:41:21

Eclipse亂碼Eclipse

2011-03-04 13:07:47

Filezilla

2011-01-19 17:54:48

2009-05-31 09:07:35

Oracle鎖定

2011-06-17 11:10:51

Qt 中文 輸出

2009-12-07 18:38:16

WCF異常

2017-05-04 20:15:51

iOSNSTimer循環(huán)引用

2010-01-15 09:38:08

磁盤被寫(xiě)保護(hù)解決辦法

2009-02-18 09:30:10

AJAX跨域XML

2011-04-21 16:42:40

傳真機(jī)

2009-11-30 10:55:16

PHP頁(yè)面亂碼

2009-05-26 14:34:55

Ubuntuwubi臨時(shí)

2012-03-14 10:58:27

Java

2009-12-03 17:36:02

PHP Date()出

2012-07-31 16:06:28

Linux內(nèi)核編譯

2012-12-12 15:19:32

云安全

2010-04-19 14:57:16

Oracle收縮表分區(qū)

2009-11-26 10:15:42

Suse應(yīng)用Ftp
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)