I installed MongoDB in wsl using the official windows document here. I have created a path and can start the a DB instance using
sudo mongod --dbpath ~/data/db
but after following the docs further and adding the init script from here to start MongoDB as a service, and running this command
sudo service mongodb start
returns output:
* Starting database mongod [fail]
and as expected when I run,
sudo service mongodb status
I have the output
* Checking status of database mongod
* apparently not running
[fail]
now, how do I solve this?