Create Mongo DB Service for windows

PHP FRY

Configure a Windows Service for MongoDB Community Edition

1

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.

2

Create directories.

Create directories for your database and log files:

mkdir c:datadb
mkdir c:datalog
3

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:

systemLog:destination:filepath:c:datalogmongod.logstorage:dbPath:c:datadb
4

Install the MongoDB service.

IMPORTANT

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:

WordPress.com Logo

You are commenting using your WordPress.com 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