linux下重启网卡使用命令 : service network restart 时报错: [root@slave01 hadoop]# service network restart Starting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service&qu
1.修改ifcfg-ens33为ifcfg-eth0 cd /etc/sysconfig/network-scripts/ su root #进入root模式,需要输入密码 mv ifcfg-ens33 ifcfg-eth0 ls 2.编辑ifcfg-eth0 将NAME=ens33改为NAME=eth0 设置静态ip BOOTPROTO=static ONBOOT=yes 重启网卡 service network restart 进入修改grub文件 cd