CentOS-Desktop版service network restart报错

时间:2024-09-12 15:05:32

出错情况:

[root@localhost]# service network restart
正在关闭接口 eth0: 设备状态:3 (断开连接)
                                                           [确定]
关闭环回接口:                                             [确定]
弹出环回接口:                                             [确定]
弹出界面 eth0: 活跃连接状态:激活中
活跃连接路径:/org/freedesktop/NetworkManager/ActiveConnection/3

** (process:3941): WARNING **: _nm_object_get_property: Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/3: (19) Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

解决办法:

yum remove NetworkManager

或者设置/etc/sysconfig/network-scripts/ifc-eth0中的

NM_CONTROLLED=no