I have a problem with Debian 9, I can not find a way (Google) to make mongodb run as soon as I load the operating system.
I have installed Debian 9 without a graphical environment. I've tried:
systemctl enable mongod.service
And it does not happen absolutely nothing , it does not work. How can I then make mongodb run as soon as the system is loaded?
Note:
mongod --dbpath /var/lib/mongodb --port 27017
runs perfectly and it's just that line of "code" what I want to run as soon as I boot the system.