6

I'm using Linux Mint 18 XFCE and installed Apache, MySQL and PHP packages to make local development.

Apache and MySQL services are always active and start from the beginning.

How can I disable those service to do not start at the beginning? The idea is that whenever I want to work locally I'll start both services using something like:

sudo service apache2 start && sudo service mysql start
2
  • 1
    Remove them from init.d / systemd Commented Oct 7, 2016 at 13:36
  • I see no reason to downvote. Commented Oct 7, 2016 at 14:09

2 Answers 2

8

You should disable them using either systemctl (if you're using systemd) or update-rc.d:

systemctl disable apache2 mysql

or

update-rc.d apache2 disable
update-rc.d mysql disable
1
  • 1
    It worked using systemctl. Commented Oct 7, 2016 at 14:09
3

This may depend on your init system. Try one of these:

chkconfig apache2 off
systemctl disable apache2
insserv -r apache2

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.