GitHub 轻松提速教程
通過修改hosts文件來提速,獲取github的IP地址
訪問:https://www.ipaddress.com/ 網(wǎng)址
依次獲取以下三個(gè)網(wǎng)址的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
--------------------------------------------------------------------------------------
修改系統(tǒng)本地的hosts文件,添加內(nèi)容
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系統(tǒng)
打開hosts文件并修改
sudo vim /etc/hosts
2.重啟網(wǎng)絡(luò)服務(wù)
sudo /etc/init.d/networking restart
轉(zhuǎn)載于:https://www.cnblogs.com/LyShark/p/10574755.html
總結(jié)
以上是生活随笔為你收集整理的GitHub 轻松提速教程的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。