编辑配置文件 vi /etc/sysconfig/network-script/ifcfg-eth0 修改此行重启后即可 ONBOOT="yes" #修改为yes设置开机启动 转载于:https://www.cnblogs.com/harry-h/p/6276883.html