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