1.网络配置
vim /etc/sysconfig/network-scripts/ifcfg-ens33
service network restart
然后ping 百度 ping网关是否可达
第二步:
关闭防火墙,selinux
sed -i 's/SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
systemctl stop firewalld;systemctl disable firewalld
systemctl stop iptables;systemctl disable iptables
第三步:配置阿里云镜像源
下载centos7的镜像源
wget -O ~/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
删除yum.repo.d目录并重新创建
rm -rf /etc/yum.repos.d;mkdir /etc/yum.repos.d
将下载的镜像源移动到仓库目录中
mv ~/CentOS-Base.repo /etc/yum.repos.d/
重建缓存
yum clean all;yum makecache
升级所有包 :只升级所有包,不升级软件和系统内核,软件和内核保持原样
yum upgrade -y
ok基本完成