How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.
Ubuntu – How to stop Apache2 from automatically starting on boot
Apache2init.dsystemd
Apache2init.dsystemd
How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.
Best Answer
Under the folder
/etc/init.d/
you will find all the init scripts for different boot up services, like apache2, networking, etc.Depending on which runlevel the computer starts in, different services are started. So from the
/etc/init.d/
folder each "service" is linked to one/many/no run level folders named fromrc0.d
torc6.d
.To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up.
To disable apache2 simply type:
This disables apache2 at startup but is not removed so it can be enabled again. To remove the apache2 startup scripts do the following:
To remove apache2 simply type:
Doing this will cause all runlevel folders that are linked to apache2 to be removed.