centos 更換yum源

centos源更換為,163或者阿里的。

1、首先備份
mv /etc/yum.repos.d/centos-Base.repo /etc/yum.repos.d/Centos-Base.repo.backup

2、下載repo文件到目錄下
cd /etc/yum.repos.d
wget
3、yum clean all //清除緩存
yum makecache //生成新的緩存

163和aliyun鏡像:

? 版權聲明
THE END
喜歡就支持一下吧
點贊12 分享