GitHub 輕鬆提速教程(下載)

咱們能夠經過修改hosts文件來提速,獲取github的IP地址linux

1.手動訪問:https://www.ipaddress.com/ 網址,而後依次獲取如下三個網址的IPgit

github.com
github.global.ssl.fastly.net
codeload.github.comgithub


這是我獲取的IPvim

192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
--------------------------------------------------------------------------------------
修改系統本地的hosts文件,添加內容,Windows系統的hosts文件路徑:C:\Windows\System32\drivers\etc\hosts網絡

添加下面查詢到的IP到hosts文件中。。.net

192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.comrest

刷新DNScode

ipconfig /flushdnsblog


linux系統配置流程dns

打開hosts文件並修改
sudo vim /etc/hosts

2.重啓網絡服務 sudo /etc/init.d/networking restart

相關文章
相關標籤/搜索