使用centos7,其实通用Redhat也可以用
本地配置一定要挂载光盘,可能第一次可以用,但第二次没挂载上
使用的是阿里源
1.检查
2.编辑网络配置文件/etc/sysconfig/network-scripts/ifcfg-ens33,将noboot改成yes
3.重启
4.使用阿里云给的链接,去官网找
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo