原文鏈接:https://blog.51cto.com/3058076/2468981
1 原因:
由于github域名決議造成偶爾不能訪問Github網站,
訪問網址時先搜索hosts檔案,如果有網址對應的ip則不需要dns域名決議,因此可以將網址的ip配成靜態ip,減少決議程序,提高訪問速度,
2 操作
hosts檔案(位置為C:\Windows\System32\drivers\etc)最下面增加:
192.30.253.113 github.com
185.199.108.153 github.github.io
151.101.72.133 assets-cdn.github.com
151.101.185.194 github.global.ssl.fastly.net
3 重繪網路DNS快取
打開dos視窗,執行:ipconfig /flushdns
現在您可以愉快的訪問Github了,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/2270.html
標籤:其他
