1、下载阿里云的Centos-7(基础)镜像源到/etc/yum.repos.d/目录并覆盖原有CentOS-Base.repo文件
安装wget

yum -y install wget
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

2、下载阿里云的epel-7(拓展)镜像源到/etc/yum.repos.d/目录并覆盖原有epel.repo文件

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

3、更新缓存

yum clean all #清除缓存
yum makecache #更新缓存

4、安装常用软件

yum install -y bash-completion vim net-tools telnet yum-utils