CentOS7 环境安装脚本:软件运维配置脚本集合

这篇博客详细介绍了如何在 CentOS7 系统中自动化安装和配置一系列常用软件,包括 oh-my-zsh, JDK8, Maven, MongoDB, Redis, Tomcat8, Kafka, RocketMQ, Nacos, ZooKeeper, Nginx, Fastdfs, Docker 和 FastDFS。每个部分都包含了安装说明、使用方法和执行脚本的命令。" 118202699,10542654,清华大学计算机科学与技术博士课程概览,"['计算机科学', '博士教育', '算法理论', '计算机网络', '人工智能']

服务器安装配置

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

撸猫@冒泡泡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值