適用各種操作系統,本次測試於ubuntu,下載速度從二十幾k提高到二百多k
1、查找域名對應的ip地址,並修改hosts文件
nslookup github.global.ssl.fastly.Net
nslookup github.com
1
2
將下列內容加入 /etc/hosts文件中
151.101.76.249 http://global-ssl.fastly.net
192.30.255.113 http://github.com #此處112還是113根據自己的情況調整?
1
2
3
2、刷新DNS緩存
linux:
sudo /etc/init.d/networking restart
1
windows:
ipconfig /flushdns
1
參考:
http://www.linuxidc.com/Linux/2017-10/148116.htm
http://blog.csdn.net/blgmh/article/details/74531982
---------------------
作者:Leather_Wang
來源:CSDN
原文:https://blog.csdn.net/hzwwpgmwy/article/details/79043251
版權聲明:本文為博主原創文章,轉載請附上博文鏈接!