xiefei0 2017-02-09
今天修改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服务