2019-05-07 11:08:13 +08:00
|
|
|
|
# 服务安装配置
|
|
|
|
|
|
2019-05-07 14:29:16 +08:00
|
|
|
|
## oh-my-zsh 安装
|
|
|
|
|
|
|
|
|
|
说明:
|
|
|
|
|
|
|
|
|
|
安装 [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
执行以下任意命令即可执行安装脚本。
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash
|
|
|
|
|
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/zsh-install.sh | bash
|
|
|
|
|
```
|
|
|
|
|
|
2019-05-07 14:14:30 +08:00
|
|
|
|
## JDK8 安装
|
2019-05-07 11:08:13 +08:00
|
|
|
|
|
|
|
|
|
说明:
|
|
|
|
|
|
|
|
|
|
JDK8 会被安装到 `/usr/lib/jvm/java` 路径。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
执行以下任意命令即可执行安装脚本。
|
|
|
|
|
|
|
|
|
|
```sh
|
2019-05-07 14:14:30 +08:00
|
|
|
|
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash
|
|
|
|
|
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/jdk8-install.sh | bash
|
2019-05-07 11:08:13 +08:00
|
|
|
|
```
|
|
|
|
|
|
2019-05-07 14:14:30 +08:00
|
|
|
|
## Maven 安装配置
|
2019-05-07 11:39:42 +08:00
|
|
|
|
|
|
|
|
|
说明:
|
|
|
|
|
|
2019-05-07 12:07:59 +08:00
|
|
|
|
- 脚本会下载解压 maven `3.6.0` 到 `/opt/maven` 路径下。
|
2019-05-07 11:39:42 +08:00
|
|
|
|
- 备份并替换 `settings.xml`,使用 aliyun 镜像加速 maven。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
执行以下任意命令即可执行安装脚本。
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash
|
|
|
|
|
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash
|
|
|
|
|
```
|
|
|
|
|
|
2019-05-07 12:07:59 +08:00
|
|
|
|
## Node.js 安装
|
|
|
|
|
|
|
|
|
|
说明:
|
|
|
|
|
|
|
|
|
|
脚本会先安装 nvm(nodejs 版本管理器),并通过 nvm 安装 nodejs `10.15.2`。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
执行以下任意命令即可执行安装脚本。
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash
|
|
|
|
|
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/nodejs-install.sh | bash
|
|
|
|
|
```
|
2019-05-07 11:39:42 +08:00
|
|
|
|
|
2019-05-07 11:08:13 +08:00
|
|
|
|
## Redis 安装
|
|
|
|
|
|
|
|
|
|
说明:
|
|
|
|
|
|
2019-05-07 14:14:30 +08:00
|
|
|
|
下载 redis `5.0.4` 并解压安装到 `/opt/redis` 路径下。
|
2019-05-07 11:08:13 +08:00
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
执行以下任意命令即可执行安装脚本。
|
|
|
|
|
|
|
|
|
|
```sh
|
2019-05-07 14:14:30 +08:00
|
|
|
|
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash
|
|
|
|
|
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/redis-install.sh | bash
|
2019-05-07 11:08:13 +08:00
|
|
|
|
```
|
|
|
|
|
|
2019-05-07 14:14:30 +08:00
|
|
|
|
## Tomcat8 安装
|
|
|
|
|
|
|
|
|
|
说明:
|
|
|
|
|
|
|
|
|
|
下载 tomcat `8.5.28` 并解压安装到 `/opt/tomcat` 路径下。
|
|
|
|
|
|
|
|
|
|
使用方法:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash
|
|
|
|
|
wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/tomcat8-install.sh | bash
|
|
|
|
|
```
|
2019-05-07 11:08:13 +08:00
|
|
|
|
|