I was wondering how can I disable the apache2 server from starting on boot up? I can't seem to find an option which disables it to auto start when I turn on the machine.
|
Under the folder Depending on which runlevel the computer starts in, different services are started.
So from the To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up. To remove apache2 simply type:
Doing this will cause all runlevel folders that are linked to apache2 to be removed. |
|||||||||||||||||||||
|
|
you could simply disable it by:
and then if you would like to enable it again:
depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it. |
|||||||||||||||||||||
|
|
With here is an example:
You will still be able to start and stop the service but it won't start up at boot. |
|||||||||||||||||||||
|
|
Thought I'd just add to the answers by @gsullins and @tomodachi, for future readers who used the accepted answer. If you've already used:
You can use the argument
Then you're able to enable/disable
|
|||
|
|
protected by Byte Commander Mar 3 '16 at 12:27
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
update-rc.dhas filled this void. – Tomasz Gandor Sep 26 '14 at 8:53