Wednesday, March 18, 2015

How to stop Apache2 and MySQL services from boot on Ubuntu linux?

Do you computer boot slowly after LAMP installation? Don't worry about it. You just have a couple extra services that loaded during boot, if you don't like it. Just remove it from startup, by using SysV init scripts for apache2 :
$ sudo update-rc.d -f apache2 remove

Else, just disable the service from startup automatically during boot, example :
$ sudo update-rc.d apache2 disable

For MySQL, you needed to edit this file " /etc/init/mysql.conf " with you prefered text-editor. Just comment out line no 6 with # symbol at front for example i'm using sublime-text editor to prevent MySQL load & run during boot:


After that restart your machine and enjoy!

2 comments:

  1. hai kripto,
    you blur the hostname but at top terminal appear what you want to blur

    ReplyDelete