yum源配置方法(阿里云源)
- 安装wget
yum install -y wget
- 备份/etc/yum.repos.d/CentOS-Base.repo文件
cd /etc/yum.repos.d/ mv CentOS-Base.repo CentOS-Base.repo.back
- 下载阿里云的Centos-6.repo文件
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
- 重新加载yum
yum clean all yum makecache
|