centos7:Failed to restart network-manager.service: Unit not found.
时间: 2024-02-23 14:53:31 浏览: 198
MariaDB环境包,安装MariaDB出现错误:Failed to start mariadb.service: Unit not found。
根据提供的引用内容,CentOS 7中出现“Failed to restart network-manager.service: Unit not found.”的错误提示,可能是由于系统中没有安装NetworkManager服务导致的。可以通过以下步骤解决该问题:
1. 检查系统中是否安装了NetworkManager服务:
```shell
rpm -qa | grep NetworkManager
```
如果没有安装,则需要先安装NetworkManager服务:
```shell
yum install NetworkManager
```
2. 启动NetworkManager服务:
```shell
systemctl start NetworkManager
```
3. 设置NetworkManager服务开机自启动:
```shell
systemctl enable NetworkManager
```
4. 重启网络服务:
```shell
systemctl restart network
```
如果以上步骤无法解决问题,可以尝试卸载并重新安装NetworkManager服务。
阅读全文