标题: 【解决】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,则需要用以下命令:
--------------
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.