linux-tutorial/codes/linux/soft/README.md

253 lines
6.6 KiB
Markdown
Raw Normal View History

2019-05-07 11:08:13 +08:00
# 服务安装配置
2019-07-12 15:53:54 +08:00
<!-- TOC depthFrom:2 depthTo:3 -->
- [oh-my-zsh 安装](#oh-my-zsh-安装)
- [JDK8 安装](#jdk8-安装)
- [Maven 安装配置](#maven-安装配置)
- [Node.js 安装](#nodejs-安装)
- [MongoDB 安装](#mongodb-安装)
- [Redis 安装配置](#redis-安装配置)
- [Tomcat8 安装](#tomcat8-安装)
- [Kafka 安装](#kafka-安装)
- [RocketMQ 安装](#rocketmq-安装)
- [Nacos 安装](#nacos-安装)
- [ZooKeeper 安装](#zookeeper-安装)
2019-07-29 10:46:59 +08:00
- [Nginx 安装](#nginx-安装)
- [Fastdfs 安装](#fastdfs-安装)
- [Docker 安装](#docker-安装)
2019-07-12 15:53:54 +08:00
<!-- /TOC -->
2019-05-07 14:29:16 +08:00
## oh-my-zsh 安装
说明:
安装 [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh)
2019-05-07 15:04:19 +08:00
使用方法
2019-05-07 14:29:16 +08:00
执行以下任意命令即可执行安装脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zsh-install.sh | bash
2019-05-07 14:29:16 +08:00
```
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-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/jdk8-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/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
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/maven-install.sh | bash
2019-05-07 11:39:42 +08:00
```
2019-05-07 12:07:59 +08:00
## Node.js 安装
说明:
脚本会先安装 nvmnodejs 版本管理器),并通过 nvm 安装 nodejs `10.15.2`
使用方法:
执行以下任意命令即可执行安装脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nodejs-install.sh | bash
2019-05-07 12:07:59 +08:00
```
2019-05-07 11:39:42 +08:00
2019-05-07 15:21:04 +08:00
## MongoDB 安装
说明:
下载 mongodb `4.0.9` 并解压安装到 `/opt/mongodb` 路径下。
使用方法:
执行以下任意命令即可执行安装脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/mongodb-install.sh | bash
2019-05-07 15:21:04 +08:00
```
2019-05-08 17:13:04 +08:00
## Redis 安装配置
2019-05-07 11:08:13 +08:00
2019-10-29 12:19:46 +08:00
**安装说明**
2019-05-07 11:08:13 +08:00
2019-10-29 12:19:46 +08:00
- 采用编译方式安装 Redis, 并将其注册为 systemd 服务
- 安装路径为:`/usr/local/redis`
- 默认下载安装 `5.0.4` 版本,端口号为:`6379`,密码为空
2019-05-07 11:08:13 +08:00
2019-10-29 12:19:46 +08:00
**使用方法**
2019-05-07 11:08:13 +08:00
2019-10-29 12:19:46 +08:00
- 默认安装 - 执行以下任意命令即可:
2019-05-07 11:08:13 +08:00
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/redis-install.sh | bash
2019-05-07 11:08:13 +08:00
```
2019-10-29 12:19:46 +08:00
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
2019-05-08 17:13:04 +08:00
```sh
2019-10-29 12:19:46 +08:00
sh redis-install.sh [version] [port] [password]
2019-05-08 17:13:04 +08:00
```
2019-10-29 12:19:46 +08:00
参数说明:
2019-05-08 17:13:04 +08:00
2019-10-29 12:19:46 +08:00
- `version` - redis 版本号
- `port` - redis 服务端口号
- `password` - 访问密码
2019-05-08 17:13:04 +08:00
2019-05-07 14:14:30 +08:00
## Tomcat8 安装
说明:
下载 tomcat `8.5.28` 并解压安装到 `/opt/tomcat` 路径下。
使用方法:
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/tomcat8-install.sh | bash
2019-05-07 14:14:30 +08:00
```
2019-05-07 11:08:13 +08:00
2019-05-07 15:04:19 +08:00
## Kafka 安装
说明:
下载 kafka `2.2.0` 并解压安装到 `/opt/kafka` 路径下。
使用方法:执行以下任意命令即可执行脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/kafka-install.sh | bash
2019-05-07 15:04:19 +08:00
```
## RocketMQ 安装
说明:
下载 rocketmq `4.5.0` 并解压安装到 `/opt/rocketmq` 路径下。
使用方法:执行以下任意命令即可执行脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/rocketmq-install.sh | bash
2019-05-07 15:04:19 +08:00
```
2019-05-09 11:26:06 +08:00
## Nacos 安装
说明:
下载 Nacos `1.0.0` 并解压安装到 `/opt/nacos` 路径下。
使用方法:执行以下任意命令即可执行脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nacos-install.sh | bash
2019-05-09 11:26:06 +08:00
```
2019-05-07 15:21:04 +08:00
## ZooKeeper 安装
说明:
下载 zookeeper `3.4.12` 并解压安装到 `/opt/zookeeper` 路径下。
使用方法:执行以下任意命令即可执行脚本。
```sh
2019-05-16 11:49:19 +08:00
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/zookeeper-install.sh | bash
2019-05-07 15:21:04 +08:00
```
2019-07-12 15:53:54 +08:00
## Nginx 安装
2019-10-29 12:19:46 +08:00
**安装说明**
2019-07-12 15:53:54 +08:00
2019-10-29 12:19:46 +08:00
- 采用编译方式安装 Nginx, 并将其注册为 systemd 服务
- 安装路径为:`/usr/local/nginx`
- 默认下载安装 `1.16.0` 版本
2019-07-12 15:53:54 +08:00
2019-10-29 12:19:46 +08:00
**使用方法**
- 默认安装 - 执行以下任意命令即可:
2019-07-12 15:53:54 +08:00
```sh
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/nginx-install.sh | bash
```
2019-10-29 12:19:46 +08:00
- 自定义安装 - 下载脚本到本地,并按照以下格式执行:
```bash
sh nginx-install.sh [version]
```
2019-07-12 15:53:54 +08:00
## Fastdfs 安装
说明:
采用编译方式安装 Fastdfs
下载 Fastdfs 并解压安装到 `/opt/fdfs` 路径下。
使用方法:执行以下任意命令即可执行脚本。
```sh
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
2019-07-29 10:46:59 +08:00
```
## Docker 安装
说明:
使用方法:执行以下任意命令即可执行脚本。
```sh
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/docker-install.sh | bash
```
2019-08-08 14:05:30 +08:00
## FastDFS 安装
说明:
使用方法:执行以下任意命令即可执行脚本。
```sh
curl -o- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
wget -qO- https://gitee.com/turnon/linux-tutorial/raw/master/codes/linux/soft/fastdfs-install.sh | bash
```