`
wellee
  • 浏览: 100693 次
  • 性别: Icon_minigender_1
  • 来自: 温州
社区版块
存档分类
最新评论

How to disable apache2 from running on startup

阅读更多

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics