-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: 1.8.3
-
Component/s: None
-
None
-
Environment:Windows 7 64-bit
-
Windows
This works:-
"c:\mongodb\bin\mongod.exe" --config "c:\mongodb\bin\master.conf" --serviceName MongoMaster3 --serviceDisplayName MongoMaster3 --serviceDescription "Mongo Instance 1 - Master" --reinstall
But this installs the service with a nonsense path:-
"\mongodb\bin\mongod.exe" --config "c:\mongodb\bin\master.conf" --serviceName MongoMaster3 --serviceDisplayName MongoMaster3 --serviceDescription "Mongo Instance 1 - Master" --reinstall
i.e. if you don't put the drive letter there it calculates the path incorrectly when it installs the Windows Service. Windows Services shows:-
"C:\MongoDB\bin\\mongodb\bin\mongod.exe" --config c:\mongodb\bin\master.conf --service
^
- duplicates
-
SERVER-3097 mongod --install uses wrong image path depending on current working directory
- Closed