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