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
systemctl list-unit-files --type=service
可配合| grep搜索
systemctl list-unit-files --type=service | grep 服务
systemctl daemon-reload
评论 (0)