How to keep apache and mysql from starting automatically on Ubuntu 14

For all system services in /etc/init.d, disabling them can be done with the update-rc.d command, e.g.:


# update-rc.d -f apache2 remove

To restore it to running on startup:


# update-rc.d apache2 defaults

You can also manually start and stop via service apache2 start and service apache2 stop

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.