首页 > 解决方案 > apache2 服务重新启动失败 - 无法启动 apache2.service:未找到单元

问题描述

当我尝试重新启动 apache 服务器时,我得到了以下响应。

重定向到 /bin/systemctl start apache2.service

无法启动 apache2.service:未找到单元。

标签: phpapacheserver

解决方案


您正在使用不同的 apache 服务。

如果您使用相同的服务,请运行它。

systemctl restart httpd

或者

apachectl restart

推荐阅读