在虚拟机初始化时: cd / cd etc cd sysconfig cd network-scripts vi ifcfg-ens33 编辑ifcfg-ens33文件,将ONBOOT=no改成ONBOOT=yes