访问git和vue很慢如何解决

场景
最近弄git和vue发现进他们的官网实在是太慢了,想自己能不能改善一下,后来自己指定了一下ip跳过了dns解析,现在把解决过程写一下。

解决方案

先进入

C:\Windows\System32\drivers\etc
修改HOSTS 
修改之前先备份下HOSTS

git下过慢
在HOSTS中加入如下参数

185.31.17.184  github.global.ssl.fastly.net
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 

vue下过慢

104.248.78.24 cn.vuejs.org
104.248.78.24 router.vuejs.org
104.248.78.24 vuex.vuejs.org

最后刷新DNS缓存

cmd命令下
输入
ipconfig/flushdns 
回车

到此问题应该解决。

相关推荐

  1. 访问gitvue如何解决

    2024-05-09 14:08:04       31 阅读
  2. npm install 安装如何解决

    2024-05-09 14:08:04       36 阅读
  3. Github访问解决方案

    2024-05-09 14:08:04       26 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-09 14:08:04       70 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-09 14:08:04       74 阅读
  3. 在Django里面运行非项目文件

    2024-05-09 14:08:04       62 阅读
  4. Python语言-面向对象

    2024-05-09 14:08:04       72 阅读

热门阅读

  1. 安卓源码环境下编译多module app

    2024-05-09 14:08:04       95 阅读
  2. centos 找到并删除重复文件 去重

    2024-05-09 14:08:04       32 阅读
  3. 如何进行SQL优化

    2024-05-09 14:08:04       24 阅读
  4. Oracle 更改数据文件位置的几种常用方式

    2024-05-09 14:08:04       32 阅读
  5. 跨域问题解决方案

    2024-05-09 14:08:04       30 阅读
  6. wifi执法记录仪移植出现的问题

    2024-05-09 14:08:04       33 阅读