1、安装wget
yum -y install wget
2、配置yum阿里云、163和epl
将 /etc/yum.repo.d/ 下的repo文件封存
mv *.repo repo_bak/
下载阿里云和163的repo文件
[root@bogon yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo
[root@bogon yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
清除缓存和重建缓存
yum clean all
yum makecache
安装epel源
yum list | grep epel-release
下载阿里云epel源
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
清除缓存和重建缓存
yum clean all
yum makecache
.查看系统可用的yum源和所有的yum源
yum repolist enabled
yum repolist all
3、 安装net-tools
安装net-tools
yum -y install net-tools
安装vim
yum -y install vim*
安装工具
yum -y install tree zip unzip ntp