要停止 Nginx 並運行 Apache2,請按照以下步驟操作:
停止 Nginx 服務:
sudo service nginx stop
啟動 Apache2 服務:
sudo service apache2 start
確認 Apache2 是否正在運行:
sudo service apache2 status
如果您想在下次開機時禁用 Nginx 並啟用 Apache2,請運行以下命令:
sudo update-rc.d nginx disable
sudo update-rc.d apache2 enable
這樣就完成了停止 Nginx 並運行 Apache2 的操作。