在 Ubuntu 上启动 Apache2 服务的步骤如下:
打开终端(快捷键:Ctrl + Alt + T)
输入以下命令以启动 Apache2 服务:
sudo systemctl start apache2
sudo systemctl status apache2
如果服务正在运行,您将看到 “Active: active (running)” 的状态信息。
sudo systemctl enable apache2
现在,Apache2 服务已在 Ubuntu 上启动并运行。如果您需要对 Apache2 进行配置或管理,请确保您具有 root 权限。