Centos7执行systemctl start 服务报Centos7 Failed to start xxx.service: Unit not found

1585364631
2022-01-23 / 0 评论 / 454 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2022年01月23日,已超过1510天没有更新,若内容或图片失效,请留言反馈。

Centos7执行systemctl start 服务报Centos7 Failed to start xxx.service: Unit not found

查看列表中是否有该服务

systemctl list-unit-files --type=service

可配合| grep搜索

systemctl list-unit-files --type=service | grep 服务

如果有则执行命令重新读取

systemctl daemon-reload

如果没有则自行重装

0

评论 (0)

取消