WIndow系统路径:C:\Windows\System32\drivers\etc\host
记事本打开就行
粘贴一下内容:
# =========vue官网加速 =========
104.248.78.24 cli.vuejs.org
104.248.78.24 cn.vuejs.org
104.248.78.24 router.vuejs.org
104.248.78.24 vuex.vuejs.org
# =========加速结束! =========
# =========GitHub图片修复==============
199.232.28.133 gist.githubusecontent.com
199.232.28.133 user-images.githubusercontent.com
199.232.28.133 raw.githubusercontent.com
199.232.28.133 camo.githubusercontent.com
199.232.28.133 cloud.githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 avatars4.githubusercontent.com
199.232.28.133 avatars5.githubusercontent.com
199.232.28.133 avatars6.githubusercontent.com
199.232.28.133 avatars7.githubusercontent.com
199.232.28.133 avatars8.githubusercontent.com
# =========GitHub图片修复==============
--------------------怎么自己找到最合适的IP——————————
- 浏览器中打开ping检测网站 http://ping.chinaz.com/
- 输入github/vue网站地址 github.com、vuejs.org
- 找出ping速度最快的ip
- 接着我们按照上面步骤将Ip改成我们测出来的就行了!
- 当然,最好在cmd输入:ipconfig/flushdns ------> 刷新本地dns缓存!
--------------------git命令怎么加速clone github的项目——————————
- 使用github的镜像网站进行访问,github.com.cnpmjs.org,我们将原本的网站中的github.com 进行替换。
- git clone https://github.com/xxx/xxx.git ----> git clone https://github.com.cnpmjs.org/xxx/xxx.git
- 完美解决!
- 另外提供:Github加速下载 - 爱资料工具:https://www.toolnb.com/tools/githubjiasu.html
--------------------github下载文件加速——————————
我推荐使用镜像站的方式,怎么操作呢?很简单,我们只需要修改当前网站的网址即可加速
比如:我们想下载http://github.com/xxx/xxxproject
当前还可用的github页面镜像: https://github.com.cnpmjs.org (cnpmjs.org似乎是淘宝的镜像站)
github release镜像: https://github.wuyanzheshui.workers.dev/
另外raw.githubusercontent.com的镜像可以考虑直接用jsdelivr镜像: https://www.jsdelivr.com/
我们只需要修改主域名。
就可以下载国内镜像站服务器里的文件了,从此摆脱小水管!
----------待续-----------------------