I just started learning mongo and having trouble with its configiration, it all seems a bit confusing.
Since started learning Node I am running WSL with Ubuntu 18.04 Bionic through Hyper with ZSH. I have tried to install mongodb thorugh NPM with no luck. As mongo is not supported in WSL I followed instalation steps from this tread and it worked.
However I am not sure if its working correctly as I can access mongod service from any directory without need to install any dependency with NPM, is it correct behaviour? Shouldn't this be a separate instance of the database?
I tried in the my prod directory:
sudo mongod --dbpath=/data
and..
sudo mongod --dbpath ~/mnt/c/rob/dev/code/mongodb-data
.. but its failing and aborting whole process with code:100.
I apologise if that is a silly question, but I am just getting more and more confused.