Linux下使用systemctl restart network
报错
解决
第一步:关闭 NetworkManger 服务
service NetworkManager stop
[root@localhost ~]# service NetworkManager stop
Redirecting to /bin/systemctl stop NetworkManager.service
第二步: 关闭 Manager网卡
chkconfig NetworkManager off
[root@localhost ~]# chkconfig NetworkManager off
注意:正在将请求转发到“systemctl disable NetworkManager.service”。
Removed symlink /etc/systemd/system/multi-user.target.wants/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.
第三步:重启network网卡
service network restart
[root@localhost ~]# service network restart
Restarting network (via systemctl): [ 确定 ]