來源:https://github.com/dunwu/linux-tutorial
服務安裝配置
- oh-my-zsh 安裝
- JDK8 安裝
- Maven 安裝配置
- Node.js 安裝
- MongoDB 安裝
- Redis 安裝配置
- Tomcat8 安裝
- Kafka 安裝
- Nginx 運維
- Fastdfs 安裝
- Docker 安裝
oh-my-zsh 安裝
說明:
安裝 oh-my-zsh
使用方法
執行以下任意指令即可執行安裝腳本。
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
JDK8 安裝
說明:
JDK8 會被安裝到 /usr/lib/jvm/java 路徑。
使用方法:
執行以下任意指令即可執行安裝腳本。
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
Maven 安裝配置
說明:
- 腳本會下載下傳解壓 maven 3.6.0 到 /opt/maven 路徑下。
- 備份并替換 settings.xml,使用 aliyun 鏡像加速 maven。
使用方法:
執行以下任意指令即可執行安裝腳本。
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
Node.js 安裝
說明:
腳本會先安裝 nvm(nodejs 版本管理器),并通過 nvm 安裝 nodejs 10.15.2。
使用方法:
執行以下任意指令即可執行安裝腳本。
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
Redis 安裝配置
安裝說明
- 采用編譯方式安裝 Redis, 并将其注冊為 systemd 服務
- 安裝路徑為:/usr/local/redis
- 預設下載下傳安裝 5.0.4 版本,端口号為:6379,密碼為空
使用方法
- 預設安裝 - 執行以下任意指令即可:
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
- 自定義安裝 - 下載下傳腳本到本地,并按照以下格式執行:
sh redis-install.sh [version] [port] [password]
參數說明:
- version - redis 版本号
- port - redis 服務端口号
- password - 通路密碼
- Tomcat8 安裝
說明:
下載下傳 tomcat 8.5.28 并解壓安裝到 /opt/tomcat 路徑下。
使用方法:
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
Nginx 運維
安裝說明
- 采用編譯方式安裝 Nginx, 并将其注冊為 systemd 服務
- 安裝路徑為:/usr/local/nginx
- 預設下載下傳安裝 1.16.0 版本
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
Fastdfs 安裝
說明:
采用編譯方式安裝 Fastdfs
下載下傳 Fastdfs 并解壓安裝到 /opt/fdfs 路徑下。
使用方法:執行以下任意指令即可執行腳本。
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
Docker 安裝
說明:
使用方法:執行以下任意指令即可執行腳本。
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
FastDFS 安裝
說明:
使用方法:執行以下任意指令即可執行腳本。
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