CentOS7 環境安裝腳本:軟件運維配置腳本集合

服務器安裝配置

CentOS7相信大家都經常用,今天來給大家分享下常用的一些運維配置腳本。

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

MongoDB 安裝

說明:

下載 mongodb 4.0.9 並解壓安裝到 /opt/mongodb 路徑下。

使用方法:

執行以下任意命令即可執行安裝腳本。

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

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

Kafka 安裝

說明:

下載 kafka 2.2.0 並解壓安裝到 /opt/kafka 路徑下。

使用方法:執行以下任意命令即可執行腳本。

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

RocketMQ 安裝

說明:

下載 rocketmq 4.5.0 並解壓安裝到 /opt/rocketmq 路徑下。

使用方法:執行以下任意命令即可執行腳本。

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

Nacos 安裝

說明:

下載 Nacos 1.0.0 並解壓安裝到 /opt/nacos 路徑下。

使用方法:執行以下任意命令即可執行腳本。

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

ZooKeeper 安裝

說明:

下載 zookeeper 3.4.12 並解壓安裝到 /opt/zookeeper 路徑下。

使用方法:執行以下任意命令即可執行腳本。

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

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章