Linux 下重启网卡报 disconnecting failed: This device is not active错误
今天修改IP地址执行 service network restart
出现以下错误:
[root@localhost Desktop]# service network restart Shutting down interface eth0: Error: Device \'eth0\' (/org/freedesktop/NetworkManager/Devices/0) disconnecting failed: This device is not active [FAILED] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Error: Connection activation failed: Device not managed by NetworkManager or unavailable
原因:NetworkManager 与network两个服务冲突导致。
解决办法: 关闭NetworkManager 服务
[root@localhost Desktop]# chkconfig NetworkManager off [root@localhost Desktop]# chkconfig network on [root@localhost Desktop]# service NetworkManager stop Stopping NetworkManager daemon: [ OK ] [root@localhost Desktop]# service network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ]
chkconfig NetworkManager off 永久关闭NetworkManager服务不会立即生效
service NetworkManager stop 立即关闭,如果为chkconfig系统重启后会重新打开
chkconfig network on 永久性启动(不会立即生效)
service network start 立即启动(启动newwork服务)
service network restart:重启newwok服务
相关推荐
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20
liuhangtiant 2020-10-20