5、安装wget缓存
wget是一种下载文件的工具ide
安装wget:yum install wget -y工具

6、修改yum源为国内镜像spa
1. 切入CentOS-Base.repo所在目录orm
cd /etc/yum.repos.dblog
2. 将CentOS-Base.repo更名成CentOS-Base.repo.bak资源
mv CentOS-Base.repo CentOS-Base.repo.bakget
3. 下载阿里源文件it
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/Centos-7.repoclass

4. 清除缓存
yum clean all
5. 从新生成缓存
yum makecache
最后可使用wget快速的下载须要的资源,很方便