NAT 网络设置
创建一个 NAT 网络
修改子网段
Mac 上查看该子网段的网关
# mac上查自己的
cat /Library/Preferences/VMware\ Fusion/vmnet3/nat.conf | grep gateway -A 2
# NAT gateway address
ip = 192.168.100.1
netmask = 255.255.255.0
设置虚拟机网络
Centos 镜像源设置
# centos更换阿里云源
mkdir -p /etc/yum.repos.d/bak
mv /etc/yum.repos.d/* /etc/yum.repos.d/bak
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install vim net-tools gcc make -y