造成響應時間過長的原因是DNS尋址慢,解決方法:修改host文件
windows系統打開目錄
C:\Windows\System32\drivers\etc 使用管理員權限編輯host文件,在文件中加入以下代碼:
# 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
保存後,打開命令行,運行ipconfig命令刷新一下。
那麼,以上輸入的ip地址是如何獲得呢?
https://www.ipaddress.com/
點擊這個鏈接,查詢需要的網站的IP
轉載自:https://blog.csdn.net/swy_swy_swy/article/details/104407814