Centos 7 更新yum源为阿里云

yum install wget -y
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
cd /etc/yum.repos.d/
wget http://mirrors.aliyun.com/repo/Centos-7.repo
mv Centos-7.repo CentOS-Base.repo
yum makecache
yum -y update

猜你喜欢

转载自blog.csdn.net/gaoxu529/article/details/115460937