Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

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" and "journalctl -xe" for details.
                                                           [失败]
[root@slave01 hadoop]#  journalctl -xe
10月 09 17:39:20 slave01 network[12763]: 正在打开环回接口: [  确定  ]
10月 09 17:39:20 slave01 NetworkManager[730]: <info>  [1539077960.4630] audit: op="conn
10月 09 17:39:20 slave01 network[12763]: 正在打开接口 ens33: 错误:激活连接失败:No su
10月 09 17:39:20 slave01 network[12763]: [失败]
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 network[12763]: RTNETLINK answers: File exists
10月 09 17:39:20 slave01 systemd[1]: network.service: control process exited, code=exit
10月 09 17:39:20 slave01 systemd[1]: Failed to start LSB: Bring up/down networking.
-- Subject: Unit network.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit network.service has failed.
-- 
-- The result is failed.
10月 09 17:39:20 slave01 systemd[1]: Unit network.service entered failed state.
10月 09 17:39:20 slave01 systemd[1]: network.service failed.
10月 09 17:39:20 slave01 polkitd[725]: Unregistered Authentication Agent for unix-proce

解决如下

执行如下命令:

stop NetworkManager
systemctl disable NetworkManager

然后:重启网卡:
systemctl restart network

posted on 2018-10-09 19:18  天生一对  阅读(3921)  评论(0编辑  收藏  举报

导航