linux重启网络报错Unit network-manager.service not found.

  • Post author:
  • Post category:linux



ps:最重要的

Centos 8 需要使用nmcli c reload



问题:

使用 systemctl restart network 或 service network-manager restart 等等命令,

重启网卡失败,如下所示。


[root@localhost ~]#




service network-manager restart


  1. Failed to restart network-manager.service: Unit network-manager.service not found.


  2. [root@localhost ~]#


  3. [root@localhost ~]#


  4. [root@localhost ~]# service network restart


  5. Redirecting to /bin/systemctl restart network.service


  6. Failed to restart network.service: Unit network.service not found.


解决:

1、可以

尝试

使用以下命令:

service network restart

(


service network-manager restart  不好用的话,可以试下该方法


)

2、如果是 Kali Linux(Debian),则需要用以下命令:

service networking restart

3、如果是Centos 8,则需要用以下命令:

nmcli c reload


wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==


ps:最重要的

Centos 8 需要使用nmcli c reload