发新话题
打印

【解决】Failed to restart network.service: Unit network.service not found

【解决】Failed to restart network.service: Unit network.service not found

问题:使用systemctl restart network 或 service network restart 命令重启网卡失败,如下所示。

[root@localhost ~]# systemctl restart network
Failed to restart network.service: Unit network.service not found.
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# service network restart
Redirecting to /bin/systemctl restart network.service
Failed to restart network.service: Unit network.service not found.
解决:

1、可以尝试使用以下命令:

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

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

nmcli c reload


原文链接:https://blog.csdn.net/l1028386804/article/details/105489968

--------------
the default workstation install sets ONBOOT to no, there’s ur problem! so look at your /etc/sysconfig/network-scripts/ifcfg-ens33 or w/e name it used and change ONBOOT to yes then reboot.


https://www.golinuxcloud.com/unit-network-service-not-found-rhel-8-linux/

TOP

发新话题