MongoDB windows service install -


i'm trying configure windows 7 (32 bit) service mongodb cmd command: mongod.exe -f mongo.conf --install --servicename mongodb --servicedisplayname "mongodb windows service" --servicedescription "mongodb"

-f mongo.conf reference configuration file located in same directory mongod.exe. how mongo.conf looks like: dbpath = c:\program files\mongodb 2.6 standard\data logpath = c:\program files\mongodb 2.6 standard\logs\mongo.log port = 27017  , yet, when i'm trying run command, mongo logs me: --install has used --logpath  has idea wrong that? 

use full path in -f argument:

--install -f "c:\program files\mongodb 2.6 standard\mongod.conf" 

(caveat: haven't tried whitespaces in folder names)

services working directory isn't directory install them or exe resides in, %windir%\system32 directory.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -