解決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打開慢的同學,也可以試試這個方法。
  • 感謝大佬,原文在此
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章