cent7报Job for network.service failed because…错误
[root@localhost stu]# 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@localhost stu]# journalctl -xe
Nov 30 02:30:31 localhost.localdomain network[2949]: Bringing up loopback interface: [
Nov 30 02:30:31 localhost.localdomain NetworkManager[671]: [1606732231.6090] au
Nov 30 02:30:31 localhost.localdomain network[2949]: Bringing up interface ens33: Erro
Nov 30 02:30:31 localhost.localdomain network[2949]: [FAILED]
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain network[2949]: RTNETLINK answers: File exists
Nov 30 02:30:31 localhost.localdomain systemd[1]: network.service: control process exit
Nov 30 02:30:31 localhost.localdomain systemd[1]: Failed to start LSB: Bring up/down ne
– Subject: Unit network.service has failed
– Defined-By: systemd
– Support: link.
– Unit network.service has failed.
– The result is failed.
Nov 30 02:30:31 localhost.localdomain systemd[1]: Unit network.service entered failed s
Nov 30 02:30:31 localhost.localdomain systemd[1]: network.service failed.
Nov 30 02:30:31 localhost.localdomain polkitd[565]: Unregistered Authentication Agent f
#####################################
解决:
[root@localhost stu]# systemctl stop NetworkManager
[root@localhost stu]# systemctl disable NetworkManager
######################################
然后:重启网卡即可
[root@localhost stu]# systemctl restart network
[root@localhost stu]# ping baidu.com