Set up mongoDB as a Windows service

  1. Create a log folder in your data folder
  2. Open console with admin privileges
  3. Then in console type mongod –logpath c:datalogmongodb.log –install
  4. Now mongodb should be listed as a service
  5. Then in console type ‘services.msc’ and find mongodb service listed
  6. Right click on it and select start. Now mongodb should be running
0 0 votes
Article Rating

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

0
Would love your thoughts, please comment.x
()
x