Wednesday, 23 July 2014

MongoDB Install as a Windows Service

Create a MongoDB config file as a filename like mongod.cfg logpath=c:\data\log\mongod.log dbpath=c:\data\db

In Cmd: sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB 2.6 Standard\mongod.cfg\"" DisplayName= "MongoDB 2.6 Standard" start= "auto"

No comments:

Post a Comment