Skip to content

Instantly share code, notes, and snippets.

@SteveMcArthur
Created April 8, 2014 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveMcArthur/10200226 to your computer and use it in GitHub Desktop.
Save SteveMcArthur/10200226 to your computer and use it in GitHub Desktop.
Mongodb - starting up and setting dbpath
::start mongo db - navigate to location of mongodb\bin and run the mongod exe
mongod
::startup and set db data path
mongod --dbpath F:\mongodb\data
::bat file to do the same without closing after its executed
cmd /k mongod --dbpath F:\mongodb\data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment