Failed to restart network.service: Unit network.service not found.怎么解决
时间: 2023-08-07 12:02:20 浏览: 229
docker.service启动失败:Unit not found的原因及解决办法
5星 · 资源好评率100%
引用\[1\]和\[2\]中提到的报错"Failed to restart network.service: Unit network.service not found."表示无法找到network.service单元,因此无法重启网络服务。这通常是因为CentOS 7及更高版本中使用了NetworkManager作为网络管理器,而不再使用传统的network.service。引用\[3\]中提到可以使用"systemctl restart NetworkManager"命令来重启网络服务。
所以,解决这个问题的方法是使用"systemctl restart NetworkManager"命令来重启网络服务。这个命令会重新启动NetworkManager服务,它是CentOS 7及更高版本中的网络管理器。确保你已经安装了NetworkManager,并且该服务正在运行。你可以使用"systemctl status NetworkManager"命令来检查NetworkManager服务的状态。如果服务正在运行,那么你可以尝试重新启动网络服务。
#### 引用[.reference_title]
- *1* *3* [CentOS之——【解决】CentOS 8 Failed to restart network.service: Unit network.service not found.](https://blog.csdn.net/qq_33468857/article/details/125135211)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [CentOs8出现:Failed to restart network.service: Unit network.service not found.解决方案](https://blog.csdn.net/lalala_dxf/article/details/120579324)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文