I am trying to set up Mongo DB as a service under Win XP sp3 (mongod says sp2), version 2.0.6 pdfile version 4.5
To do this I have set up a config file -
- mongodb.cfg
- data directory
dbpath = "C:\Documents and Settings\xxx\Ubiquiti UniFi\data\db"
- log file directory
logpath = "C:\logs\server.log"
- append to log file
logappend = true
- port mongodb listens on
port = 27117
My command line is -
"C:\Documents and Settings\Robin StClair\Ubiquiti UniFi\bin\mongod.exe" --config "C:\Documents and Settings\Robin StClair\Ubiquiti UniFi\conf\mongodb.cfg" --install
as I wish to set up Mongo DB as a service.
Mongod.exe executes, finds and opens the config file and then an errno:22 is thrown and mongod.exe shuts down gracefully.
I believe this is a Visual C++ error (doesn't like long command strings, hence my short path to log file (to see if that would get rid of the problem)).
I would be grateful for some guidance
R+C
- duplicates
-
SERVER-4410 Windows Service --install option isn't quoting all file parameters
- Closed