其他一键安装脚本
This commit is contained in:
37
common-software-install/README.md
Normal file
37
common-software-install/README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# CentOS7 初始化
|
||||
|
||||
### 脚本描述
|
||||
```
|
||||
纯净的 CentOS7 系统, 需要安装一些常用的软件, 如 git、vim 等.
|
||||
```
|
||||
|
||||
### 脚本内容
|
||||
[common-software-install.sh](common-software-install.sh)
|
||||
```shell
|
||||
#!/bin/bash
|
||||
|
||||
# '\033[字背景颜色;字体颜色m字符串\033[0m'
|
||||
GREENCOLOR='\033[1;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
echo "===================================================="
|
||||
printf "${GREENCOLOR} common-software's install begin ${NC} \n"
|
||||
echo "===================================================="
|
||||
|
||||
# 为了使用 ifconfig 命令, 需要安装 net-tools
|
||||
yum -y install net-tools
|
||||
yum -y install vim
|
||||
yum -y install wget
|
||||
yum -y install autoconf
|
||||
yum -y install gcc gcc-c++ make
|
||||
yum -y install git
|
||||
|
||||
echo "===================================================="
|
||||
printf "${GREENCOLOR} common-software's install finish ${NC} \n"
|
||||
echo "===================================================="
|
||||
```
|
||||
|
||||
### 执行
|
||||
```shell
|
||||
bash common-software-install.sh
|
||||
```
|
Reference in New Issue
Block a user