A Brief But Accurate Documentation, BSD Linux And Programming

 Docker

Saturday, November 21, 2020

How to run MongoDB on MX Linux sysVinit without using Systemd

 First, make sure you have installed MongoDB on your machine if not head over to visit this link to install it on your MX Linux.

After that on your terminal run the following command:

Visit this link and copy all the script   

run it

sudo nano /etc/init.d/mongo  paste it, exit, and save.

then run sudo chmod +x /etc/init.d/mongo   

and start

sudo /etc/init.d/mongo start

You can also run MongoDB automatically

sudo update-rc.d mongo defaults

So with this, you don't have to start manually after you reboot or shut down your system.

I hope it helps you out now you don't have to boot with systemd.

1 comment:

Back to top