http://emilientaque.fr/2010/01/how-to-disable-apache2-from-running-on-startup/
How to disable apache2 from running on startup
I was trying to remove the following warning from passenger-memory-stats, I had to install apache2 but without running it :
*** WARNING: The Apache executable cannot be found. Please set the APXS2 environment variable to your 'apxs2' executable's filename, or set the HTTPD environment variable to your 'httpd' or 'apache2' executable's filename.
# To stop apache2 for this session only:
sudo /etc/init.d/apache2 stop
# To remove apache2 permanently from startup scripts:
sudo update-rc.d apache2 remove
# To reinstate apache2 in the startup scripts:
sudo update-rc.d apache2 defaults
本文介绍如何在不卸载Apache2的情况下禁用其随系统启动的功能。通过使用特定命令,可以在当前会话中临时停止Apache2服务,或者永久地从系统的启动脚本中移除Apache2。
1310

被折叠的 条评论
为什么被折叠?



