Ubuntu "重启apache2.service失败,未找到apache2.service单元。未找到apache2.service单元。

问题描述 投票:0回答:1

我正在使用谷歌云平台来测试ModSecurity,我正在使用教程来启动它。然而,我需要每隔一段时间重启Apache。我使用的是Ubuntu 18.04。我写了 sudo systemctl restart apache2但错误出现了,它说 Failed to restart apache2.service: Unit apache2.service not found. 我应该怎么做?

apache google-cloud-platform ubuntu-18.04 mod-security
1个回答
4
投票

你是否先安装了apache2?

sudo apt install apache2
© www.soinside.com 2019 - 2024. All rights reserved.