Skip to content

Instantly share code, notes, and snippets.

@malkitsingh
Created November 30, 2016 14:46
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 malkitsingh/2de8fd5ca7992e00f9c5a4ed01d57152 to your computer and use it in GitHub Desktop.
Save malkitsingh/2de8fd5ca7992e00f9c5a4ed01d57152 to your computer and use it in GitHub Desktop.
Running Mondo DB as a Service
Make sure that you added you /bin directory to you system variable PATH
D:\mongodb\bin>mongod --remove
First I executed this command after opening command prompt as administrator:
D:\mongodb\bin>mongod --dbpath=D:\mongodb --logpath=D:\mongodb\log.txt --install
After that right there in the command prompt execute:
services.msc
Taken from http://stackoverflow.com/questions/2438055/how-to-run-mongodb-as-windows-service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment