apache2 服务重启失败 - 无法启动 apache2.service:未找到单元

Mah*_*tap 6 php apache server

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

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

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

Kis*_*tel 8

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

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

systemctl restart httpd
Run Code Online (Sandbox Code Playgroud)

或者

apachectl restart
Run Code Online (Sandbox Code Playgroud)