centos配置阿里云yum源

2017-3-8来源:ASP.NET技巧人气:328

备份默认源
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.backup下载阿里云的yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo运行
yum makecache参考:http://mirrors.aliyun.com/help/centos