Board logo

标题: 【解决】Failed to restart network.service: Unit network.service not found [打印本页]

作者: linda    时间: 2021-9-17 17:27     标题: 【解决】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/




欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0