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