Skip to content

Latest commit

 

History

History

common-software-install

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

CentOS7 初始化

脚本描述

纯净的 CentOS7 系统, 需要安装一些常用的软件, 如 git、vim 等.

脚本内容

common-software-install.sh

#!/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 "===================================================="

执行

bash common-software-install.sh