centos配置yum源
网络baiyum源配置
1.把默认yum源备份(可选)
#mkdir /opt/centos-yum.bak
#mv /etc/yum.repos.d/* /opt/centos-yum.bak/
2.查看系统版本
cat /etc/redhat-release //查看系统的版本
CentOS Linux release 7.2.1511 (Core)
3.下载aliyun yum源repo文件(对应自己的系统版本下载即可)
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/Centos-5.repoCentOS 6