解决yum源不能使用,以及配置固定ip

配置固定ip

首先vi /etc/sysconfig/network-scripts/ifcfg-ens33
解决yum源不能使用,以及配置固定ip

然后 sudo service  network restart  大功告成

yum源不能用

首先
rm -rf /etc/yum.repos.d/*

然后去下载阿里云的源
wget http://mirrors.aliyun.com/repo/Centos-7.repo