解決GitHub打開太慢或者打不開
github在國内打開很慢,甚至打不開,這都是因為他是國外站;目前網際網路的連接配接機制導緻超過一定的路由節點的連接配接就會出現這個問題,解決辦法就是直接告訴本機ip。不要先層層詢問域名轉ip,這樣速度和連接配接的速度都可以進一步的大副提升,是以将下面的内容帖到本機的hosts檔案中,就能大幅度提速,并且打不開的也會打開!
windows下路徑為:
C:\Windows\System32\drivers\etc\hosts
Linux下路徑:
/etc/hosts
# 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
如果出現編輯完host檔案沒有權限儲存,那麼可以看下這篇文章:編輯完host檔案沒有權限儲存怎麼辦