Skip to content

Instantly share code, notes, and snippets.

@selvaonline
Last active February 20, 2018 03:55
Show Gist options
  • Save selvaonline/42bcf4645298c36ec60c158837fad820 to your computer and use it in GitHub Desktop.
Save selvaonline/42bcf4645298c36ec60c158837fad820 to your computer and use it in GitHub Desktop.
Mongo DB
Start Mongodb as a service - Mongodb Initial Setup Flags
Run the below command in CMD by running CMD as "Admin"
c:\mongodb\bin>mongod --logpath c:\mongodb\logs\mongo.log --dbpath c:\mongodb\data\db --directoryperdb --install
c:\mongodb\bin>net start MongoDB
Now You can see as below
C:\mongodb\bin>net start MongoDB
The MongoDB service is starting.
The MongoDB service was started successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment