[DOCS-4900] Wrong command for installing MongoDB on Windows as a service Created: 03/Mar/15  Updated: 03/Mar/15  Resolved: 03/Mar/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: mongodb-3.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: unkx80 Assignee: Michael Paik
Resolution: Done Votes: 0
Labels: windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7


Participants:
Days since reply: 8 years, 50 weeks, 1 day ago

 Description   

On the documentation page:
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

Step 4 titled "Create the MongoDB service" has the wrong command.
The correct command should be:
sc.exe create MongoDB binPath= "\"C:\mongodb\mongod.exe\" --service --config=\"C:\mongodb\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
(no space after "--config==")

Additionally, the installation instructions would be a lot easier to follow if it doesn't assume that users install MongoDB to "C:\mongodb".
This is because the Windows builds downloaded from the MongoDB website always install to another directory (e.g., "C:\Program Files\MongoDB\Server\3.0") by default.



 Comments   
Comment by Githook User [ 03/Mar/15 ]

Author:

{u'username': u'mpaik', u'name': u'Michael Paik', u'email': u'michael.paik@10gen.com'}

Message: DOCS-4900 - windows manual service install bugfix

Signed-off-by: Michael Paik <michael.paik@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/7a31f48daa3199c0301a0e716d50bca3ecab7b0c

Generated at Thu Feb 08 07:49:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.