Create Mongo DB Service for windows


Configure a Windows Service for MongoDB Community Edition


Open an Administrator command prompt.

Press the Win key, type cmd.exe, and press Ctrl + Shift + Enter to run the Command Prompt as Administrator.

Execute the remaining steps from the Administrator command prompt.


Create directories.

Create directories for your database and log files:

mkdir c:datadb
mkdir c:datalog

Create a configuration file.

Create a configuration file. The file must set systemLog.path. Include additional configuration optionsas appropriate.

For example, create a file at C:Program FilesMongoDBServer3.4mongod.cfg that specifies both systemLog.path and storage.dbPath:


Install the MongoDB service.


Run all of the following commands in Command Prompt with “Administrative Privileges”.

Install the MongoDB service by starting mongod.exe with the --install option and the -configoption to specify the previously…

View original post 117 more words

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s