基于Spring Boot的前后端开发环境安装
node.js
Node.js — Run JavaScript Everywhere
Ubuntu 系统中安装遇网络问题可使用以下镜像策略解决。
-
使用文件加速镜像站安装nvm
将官方安装脚本链接中的域名raw.githubusercontent.com替换为文件加速镜像站地址。例如,使用gh-proxy.com:1
2
3# 原命令:curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# 替换为:
curl -o- https://gh-proxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash或者使用其他支持Raw文件加速的镜像站域名进行替换。
-
为nvm设置Node.js下载镜像(关键!)
在终端中执行以下命令,这将告诉nvm从国内镜像站下载Node.js,速度会有质的提升:
1
2
3
4
5
6
7
8
9
10
11
12# 设置Node.js二进制包的镜像源(阿里云镜像站)
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/
# 设置io.js的镜像源(如果需要)
export NVM_IOJS_ORG_MIRROR=https://npmmirror.com/mirrors/iojs/
# 如果为了让这个设置永久生效,将上面两行添加到你的shell配置文件中(如 ~/.bashrc, ~/.zshrc)
echo 'export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/' >> ~/.bashrc
echo 'export NVM_IOJS_ORG_MIRROR=https://npmmirror.com/mirrors/iojs/' >> ~/.bashrc
# 重新加载配置文件使其立即生效
source ~/.bashrc -
为npm设置包镜像源
安装好Node.js后,需要设置npm的仓库镜像,这样下载第三方包(如
npm install vue)才会快。1
2
3
4
5# 将npm的默认仓库地址切换为淘宝镜像源(最常用)
npm config set registry https://registry.npmmirror.com/
# 如果你使用yarn,也可以设置yarn的镜像
yarn config set registry https://registry.npmmirror.com/ -
(可选但推荐)安装cnpm
这是一个完全使用国内镜像的npm替代工具,适合需要频繁安装依赖的场景。
1
2
3
4# 安装cnpm
npm install -g cnpm --registry=https://registry.npmmirror.com
# 之后你就可以用 cnpm install 代替 npm install,速度极快 -
验证配置是否生效
- 验证nvm镜像:执行
nvm install --lts,观察下载链接是否以https://npmmirror.com/mirrors/node/开头。 - 验证npm镜像:执行
npm config get registry,应返回https://registry.npmmirror.com/。 - 验证cnpm:执行
cnpm -v,能显示版本号即安装成功。
- 验证nvm镜像:执行
yarn
1 | npm install -g yarn |
Java JDK
VScode
Download Visual Studio Code - Mac, Linux, Windows
PlantUML
使用说明plantuml.com/zh/graphviz-dot
windows下无需安装,作为插件再VScode或Idea上使用,但需要有java环境
Maven
二进制安装教程:Installation – Maven
下载网址:Download Apache Maven – Maven
Maven中配置阿里云路径
在Maven的安装路径下的config文件中的settings.xml文件中配置一下阿里云镜像路径。代码要放在<mirrors></mirrors>中。
1 | <mirror> |
打开IDEA进行相关配置,点击左上角的File->Settings->Build->Maven,将User settings file 的路径设置为刚刚配置的settings.xml文件的路径(要把右边的Override打√才能修改路径)。
Redis
官网:Run Redis Open Source on Windows using Docker | Docs
win直装:Releases · tporadowski/redis
Elasticsearch和ik中文分词器
ES与jdk兼容性:Support Matrix | Elastic
兼容ik分词的ES8.15安装方法:在 Windows 上安装 Elasticsearch with .zip |Elasticsearch 指南 [8.15] |弹性的
ik分词器下载:Index of: analysis-ik/stable/
MySQL & Navicat
MySQL:MySQL :: MySQL Community Downloads
Navicat: 软件管家-安全、稳定、纯净的软件下载平台-首页