×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Bash
Posted by: Paul Allies Allies
Added: Dec 18, 2013 7:11 AM
Modified: Dec 18, 2013 7:23 AM
Views: 17
Tags: mongodb
  1. #run command prompt as administrator
  2.  
  3. #Install mongodb service
  4. $ cd mongodb/bin
  5. $ mongod.exe --logpath <drive>:/data/log --dbpath <drive>:/data/db --install
  6.  
  7. #start the service
  8. $ net start mongodb
  9.  
  10. #stop the service
  11. $ net stop mongodb
  12.  
  13. #Remove mongodb service
  14. mongod --remove