I\'ve installed mongodb and have been able to run it, work with it, do simple DB read / write type stuff. Now I\'m trying to set up my Mac to run mongod as a service.
install mongodb in your linux machine with
apt install mongodb-client && apt install mongodb-server
change the database path instead of your system default path if you want.
so do the following steps and change it for yourself.
mongod --directoryperdb --dbpath /var/lib/mongodb/data/db --logpath /var/lib/mongodb/log/mongodb.log --logappend --rest
and in your windows machine do it just like that just put an --install flag. you have to get a successful message.
Best Regards...