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.
Thanks it works perfect!
ReplyDelete