修改文件 vi /etc/sysconfig/network-scripts/ifcfg-ens33 onboot =no 改成yes 然后重启网络 sudo service network restart