解決國內訪問github慢的問題

1.使用瀏覽器訪問https://www.ipaddress.com/,分別獲取github.com,github.global.ssl.fastly.net對應的ipgit

clipboard.png

本人獲取的ip以下:github

192.30.253.112 github.com
151.101.13.194 github.global.ssl.fastly.net

2.修改host文件(本人使用switchHost工具切換host)瀏覽器

$ pwd
/c/Windows/System32/drivers/etc

修改HOSTS文件以下:
# Additionally,
# lines or following the machi
192.30.253.112 github.com
151.101.13.194 github.global.ssl.fastly.net

3.更新DNS緩存緩存

C:\Users\xxx>ipconfig /flushdns

Windows IP 配置

已成功刷新 DNS 解析緩存。

4.從新訪問https://github.com,是否是很快!!!工具

clipboard.png

相關文章
相關標籤/搜索