解决github不显示图片或vue官网访问缓慢

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.comvuejs.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/

我们只需要修改主域名。

就可以下载国内镜像站服务器里的文件了,从此摆脱小水管!

----------待续-----------------------

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值