不废话,直接上命令
cd /etc/yum.repos.d/
rm -rf *.repo
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o Centos-7.repo
yum clean all
yum makecache
不废话,直接上命令
cd /etc/yum.repos.d/
rm -rf *.repo
curl http://mirrors.aliyun.com/repo/Centos-7.repo -o Centos-7.repo
yum clean all
yum makecache