Linux: Runlevel configuration tool to start service on Ubuntu/Debian

Under Debian or Ubuntu based distro, use the runlevel configuration tool to manage services run levels

To turn on mongodb service, use the following command:

update-rc.d mongodb defaults

you may to sudo:

sudo update-rc.d mongodb defaults

To remove service, use

update-rc.d mongodb defaults

or using sudo:

sudo update-rc.d mongodb defaults
Tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *