[root@localhost etc]# cd /etc/sysconfig/network-scripts/ [root@localhost network-scripts]# ll 修改此文件中的ONBOOT=yes [root@localhost network-scripts]# vim ifcfg-ens33 重启网络 [root@localhost network-scripts]# service network restart