Categories
Programming

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 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments