Last Updated: February 25, 2016
·
2.01K
· nkornel

Run rapidly dev-mongodb with batch file under windows

Well, sometimes you don't want to run your mongodb installation as a windows service, and you don't want to initiate it each and every time when you start your pc. Well under windows you can create a batch (.bat) file. It is that easy:

  1. Open notepad

  2. Put this line (logically change the paths)
    start pathtomongod.exe --dbpath pathtodatadirectory

  3. Save as yourpreference.bat

  4. Put where it is easy to run and done!