linux file exists异常,linux报错问题解决:RTNETLINK answers: File exists

[root@testbig04 ~]# systemctl status network.service

● network.service - LSB: Bring up/down networking

Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)

Active: failed (Result: exit-code) since Wed 2019-09-04 17:46:41 CST; 4s ago

Docs: man:systemd-sysv-generator(8)

Process: 5539 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com systemd[1]: network.service: control process exited, code=exited status=1

Sep 04 17:46:41 testbig04.isky.com systemd[1]: Failed to start LSB: Bring up/down networking.

Sep 04 17:46:41 testbig04.isky.com systemd[1]: Unit network.service entered failed state.

Sep 04 17:46:41 testbig04.isky.com systemd[1]: network.service failed.

[root@testbig04 ~]# service NetworkManager stop

Redirecting to /bin/systemctl stop NetworkManager.service

[root@testbig04 ~]# chkconfig NetworkManager off

Note: Forwarding request to 'systemctl disable NetworkManager.service'.

Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service.

Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.

Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.

[root@testbig04 ~]# systemctl status network.service

● network.service - LSB: Bring up/down networking

Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)

Active: failed (Result: exit-code) since Wed 2019-09-04 17:46:41 CST; 40s ago

Docs: man:systemd-sysv-generator(8)

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com systemd[1]: network.service: control process exited, code=exited status=1

Sep 04 17:46:41 testbig04.isky.com systemd[1]: Failed to start LSB: Bring up/down networking.

Sep 04 17:46:41 testbig04.isky.com systemd[1]: Unit network.service entered failed state.

Sep 04 17:46:41 testbig04.isky.com systemd[1]: network.service failed.

[root@testbig04 ~]# systemctl status network.service

● network.service - LSB: Bring up/down networking

Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)

Active: failed (Result: exit-code) since Wed 2019-09-04 17:46:41 CST; 49s ago

Docs: man:systemd-sysv-generator(8)

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com network[5539]: RTNETLINK answers: File exists

Sep 04 17:46:41 testbig04.isky.com systemd[1]: network.service: control process exited, code=exited status=1

Sep 04 17:46:41 testbig04.isky.com systemd[1]: Failed to start LSB: Bring up/down networking.

Sep 04 17:46:41 testbig04.isky.com systemd[1]: Unit network.service entered failed state.

Sep 04 17:46:41 testbig04.isky.com systemd[1]: network.service failed.

解决办法:

接关闭 NetworkManger :

service NetworkManager stop

禁止开机启动:

chkconfig NetworkManager off

重启机器:

reboot

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值