在 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 權限。