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