All Articles

Running Mongodb as a service on windows

> c:\mongodb\mongod.exe --logpath "c:\mongodb\logs\mongo.log" --logappend --dbpath "c:\mongodb\dat
a" --directoryperdb --install
all output going to: c:\mongodb\logs\mongo.log
Creating service MongoDB.
Service creation successful.
Service can be started from the command line via 'net start "MongoDB"'.

> net start MongoDB
The Mongo DB service was started successfully.

> mongo
MongoDB shell version: 1.6.5
connecting to: test
Published 23 Feb 2011

Code. Comics. Crossfit
Tim Broder on Twitter