GitHub訪問提速


在本地host文件中添加映射,步驟如下:
用文本編輯器打開hosts文件,位於C:\Windows\System32\drivers\etc目錄下
打開 http://tool.chinaz.com/dns ,這是一個查詢域名映射關係的工具,選一個延遲小的添加到hosts文件中,例如:

192.30.253.112 assets-cdn.github.com
151.101.88.249 github.global.ssl.fastly.net
192.30.253.112 github.com 
192.30.253.113 github.com 
192.30.253.119 gist.github.com 
151.101.185.194 github.global.ssl.fastly.net
151.101.100.133 assets-cdn.github.com 
151.101.100.133 raw.githubusercontent.com 
151.101.100.133 gist.githubusercontent.com 
151.101.100.133 cloud.githubusercontent.com 
151.101.100.133 camo.githubusercontent.com 
151.101.100.133 avatars0.githubusercontent.com 
151.101.100.133 avatars1.githubusercontent.com 
151.101.100.133 avatars2.githubusercontent.com 
151.101.100.133 avatars3.githubusercontent.com 
151.101.100.133 avatars4.githubusercontent.com 
151.101.100.133 avatars5.githubusercontent.com 
151.101.100.133 avatars6.githubusercontent.com 
151.101.100.133 avatars7.githubusercontent.com 
151.101.100.133 avatars8.githubusercontent.com 


以上方法來自互聯網,實測並沒有什麼用。有效的方法爲:

1、用數據流量而不是寬帶網絡(尤其是校園網)來訪問;

2、需要下載大文件時,推薦使用服務器來下載,例如Vultr,從github網站將zip直接wget到服務器網速平均40MB/s,從服務器到本地,那就得看本事了。(直接scp也可以,但是偶爾會不穩定。最好的方法是從Vultr轉到國內的雲,然後基本可以全速下載了。)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章