专注云服务商活动
网站运营运维笔记

配置云服务器弹性IP出现"Job for network.service failed because the control process exited with error code"

如今我们国内的一些云服务器是有提供弹性或者多IP的,但是有时候是需要重新配置网卡的。这里在配置完毕重启后发现有问题,看到有报错"Job for network.service failed because the control process exited with error code"。

[root@laozuo.org]# systemctl restart network
Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.
[root@laozuo.org]# journalctl -xe
10月 26 17:15:57 mina0 network[3308]: 正在打开环回接口: [  确定  ]
10月 26 17:15:57 mina0 NetworkManager[679]:   [1509009357.3386] audit: op="connec
10月 26 17:15:57 mina0 network[3308]: 正在打开接口 ens33: 错误:激活连接失败:No suita
10月 26 17:15:57 mina0 network[3308]: [失败]
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 network[3308]: RTNETLINK answers: File exists
10月 26 17:15:57 mina0 polkitd[680]: Unregistered Authentication Agent for unix-process
10月 26 17:15:57 mina0 systemd[1]: network.service: control process exited, code=exited
10月 26 17:15:57 mina0 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

如何解决呢?

systemctl stop NetworkManager
systemctl disable NetworkManager

然后再重启网卡。

systemctl restart network
ifconfig

没有报错。

投上你的一票
域名主机商优惠信息推送QQ群: 627775477 获取商家优惠推送,禁言。
赞(0)
未经允许不得转载:老左笔记 » 配置云服务器弹性IP出现"Job for network.service failed because the control process exited with error code"