GitHub打開太慢,或者打不開Github,試試代理,讓你秒開

GitHub加速篇~~


GitHub打開太慢,或者打不開Github,試試代理,讓你秒開


GitHub在國內打開很慢,甚至打不開,這都是因為他是國外站;目前互聯網的連接機制導致超過一定的路由節點的連接就會出現這個問題,解決辦法就是直接告訴本機ip。不要先層層詢問域名轉ip,這樣速度和連接的速度都可以進一步的大副提升,所以將下面的內容帖到本機的hosts文件中,就能大幅度提速,並且打不開的也會打開!具體步驟見下面。

windows下路徑為:C:\\Windows\\System32\\drivers\\etc\\hosts

Linux下路徑:/etc/hosts

<code># GitHub Start 

192.30.253.112 github.com

192.30.253.119 gist.github.com

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

# GitHub End/<code>

目前截止到2020.3.22,上面這個GitHub代理加載不出圖片,因此需要更新到最新的代理,新的代理我也貼出來了。

<code># GitHub Start 

192.30.253.112 github.com

192.30.253.119 gist.github.com

151.101.184.133 assets-cdn.github.com

151.101.184.133 raw.githubusercontent.com

151.101.184.133 gist.githubusercontent.com

151.101.184.133 cloud.githubusercontent.com

151.101.184.133 camo.githubusercontent.com

151.101.184.133 avatars0.githubusercontent.com

151.101.184.133 avatars1.githubusercontent.com

151.101.184.133 avatars2.githubusercontent.com

151.101.184.133 avatars3.githubusercontent.com

151.101.184.133 avatars4.githubusercontent.com

151.101.184.133 avatars5.githubusercontent.com

151.101.184.133 avatars6.githubusercontent.com

151.101.184.133 avatars7.githubusercontent.com

151.101.184.133 avatars8.githubusercontent.com

# GitHub End/<code>

如果出現編輯完host文件沒有權限保存,那麼可以按照下面幾個步驟解決:

1、win+R


GitHub打開太慢,或者打不開Github,試試代理,讓你秒開


2、進入hosts的文件所在目錄,點擊‘’文件‘’按鈕


GitHub打開太慢,或者打不開Github,試試代理,讓你秒開


3、點擊Windows PowerShell ,在點擊以管理員身份打開


GitHub打開太慢,或者打不開Github,試試代理,讓你秒開


4、彈出一個窗口,輸入 cmd 並回車,就進入了管理員界面。輸入命令行:notepad hosts 並回車


GitHub打開太慢,或者打不開Github,試試代理,讓你秒開


5、打開了hosts,然後就可以執行復制粘貼等編輯操作了


分享到:


相關文章: