要在Debian上更新Apache2,您需要執行以下步驟:
打開終端(快捷鍵:Ctrl + Alt + T)
首先,確保您的系統已更新。運行以下命令來更新軟件包列表和已安裝的軟件包:
sudo apt update
sudo apt upgrade
sudo apt install --only-upgrade apache2
sudo systemctl restart apache2
sudo systemctl status apache2
現在,您已成功在Debian上更新了Apache2。