6、给CentOS配置国内源
1、进入yum.repos目录
cd /etc/yum.repos.d/
2、备份一下原有的源,以备出错了可以更改回来
mv CentOS-Base.repo CentOS-Base.repo.back
3、下载阿里的yum源
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo --下载CentOS-7源
4、 执行yum源更新命令
yum clean all
yum makecache
yum update

浙公网安备 33010602011771号