yum 进程被锁 rm -rf /var/run/yum.pid
更换本地源
1.进入到yum的源目录下
cd /etc/yum.repos.d/
2.将原来的CentOS-Base.repo进行备份
mv CentOS-Base.repo CentOS-Base.repo_back
3.替换本地源库
[localrepo]
name=localrepo
failovermethod=priority
baseurl=http://172.16.238.4/localrepo
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
5.生成缓存
yum makecache
6.更新
yum -y update
网络配置
IPADDR=10.232.3.250
PREFIX=23
GATEWAY=10.232.3.253
DNS1=172.16.10.136