GitHub 轻松提速教程
通過修改hosts文件來提速,獲取github的IP地址
訪問:https://www.ipaddress.com/ 網址
依次獲取以下三個網址的IP
github.com
github.global.ssl.fastly.net
codeload.github.com
這是我獲取的IP
192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
--------------------------------------------------------------------------------------
修改系統本地的hosts文件,添加內容
hosts文件路徑:C:\Windows\System32\drivers\etc\hosts
192.30.253.113 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
添加上面查詢到的IP到hosts文件中
刷新DNS
ipconfig /flushdns
linux系統
打開hosts文件并修改
sudo vim /etc/hosts
2.重啟網絡服務
sudo /etc/init.d/networking restart
轉載于:https://www.cnblogs.com/LyShark/p/10574755.html
總結
以上是生活随笔為你收集整理的GitHub 轻松提速教程的全部內容,希望文章能夠幫你解決所遇到的問題。