网络yum源配置
基础Centos7.x
[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
[2] 进入yum源配置文件所在文件夹
cd /etc/yum.repos.d/
[3]下载163的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
[4]阿里云yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[5]建立缓冲
yum makecache
[6]更新系统
yum -y update