1.cd /etc/yum.repos.d 进人镜像源目录
2.mv CentOS-Basd.repo CentOS-Base.repo.bak 备份镜像文件
3.wget -O /etc/yum.repos.d/Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 下载阿里源
4.yum clean all 清空缓存
5.yum makecache 重生缓存
1.cd /etc/yum.repos.d 进人镜像源目录
2.mv CentOS-Basd.repo CentOS-Base.repo.bak 备份镜像文件
3.wget -O /etc/yum.repos.d/Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 下载阿里源
4.yum clean all 清空缓存
5.yum makecache 重生缓存