解決github沒法訪問的問題,親測有效。

  • 最近發現github忽然打不開了。通過一番搜索,終於找到一個改host的方法使得能夠正常打開github,並且發現打開速度比以前還快。你們也能夠試試。
  • C:\Windows\System32\drivers\etc中打開host文件(能夠用UE等編輯工具打開),在該文件中添加以下內容。
# GitHub Start 
140.82.114.4 github.com
140.82.114.4 gist.github.com
185.199.108.153 assets-cdn.github.com
151.101.64.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com 
# GitHub End
  • 保存文件,從新刷新網頁便可打開github了。
  • github打開慢的同窗,也能夠試試這個方法。
相關文章
相關標籤/搜索