Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save etaque/288569 to your computer and use it in GitHub Desktop.
Save etaque/288569 to your computer and use it in GitHub Desktop.
# 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
# Or edit /etc/default/apache2 as root and set NO_BOOT to 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment