门户首页 > 帮助中心 > VPS 教程 > CentOS 换源

CentOS 换源

Centos6 更换阿里云源命令

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all
yum makecache

---------------------------

Centos7 更换阿里云源命令

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache


此文章对您是否有帮助?