Apache
Ubuntu Apache 建置常用指令
Categories:
測試設定檔
apachectl configtest
啟動關閉 Apache 服務
sudo service apache2 stop
sudo service apache2 start
sudo service apache2 restart
關閉 Apache 避免開機執行 Apache
# 關閉
sudo update-rc.d -f apache2 remove
# 恢復自動啟動
sudo update-rc.d apache2 defaults
sudo update-rc.d apache2 disable
sudo update-rc.d apache2 enable
移除 Apache
sudo apt-get purge -y apache2*
參考資料
- How to disable apache2 server from auto starting on boot - Ask Ubuntu
- Microsoft Word - Installing_and_working_with_ Apache_web server
- uninstall - How Can I stop Apache2 on Ubuntu 18.04? - Ask Ubuntu