对于virtual box如何安装系统本文不进行累述,主要是说一下遇到的坑
1.无法联网
wget或者crul都会报错
打开vi /etc/sysconfig/network-scripts/编辑文件名为ifcfg-enp0s3
内容设置ONBOOT=yes,然后重启系统reboot,IP获取正常,可以访问网络了
2.yum的镜像源进行更换
备份源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载阿里云的源 centos7的镜像源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
记得执行yum缓存命令
yum clean all
yum makecache