[DOCS-5527] Comment on: "manual/tutorial/install-mongodb-on-windows.txt" Created: 02/Jun/15  Updated: 24/Feb/16  Resolved: 26/Jun/15

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

Type: Bug Priority: Minor - P4
Reporter: Docs Collector User (Inactive) Assignee: Andrew Aldridge
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows server 2012 64b

Location: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Referrer: http://docs.mongodb.org/manual/tutorial/create-a-unique-index/
Screen Resolution: 1920 x 1200
repo: docs
source: tutorial/install-mongodb-on-windows


Participants:
Days since reply: 8 years, 33 weeks, 5 days ago

 Description   

The service creation command has a minor bug.

the one that works for me is :

sc.exe create MongoDB binPath= "C:\MongoDB\bin\mongod.exe --service --config=\"C:\MongoDB\mongod.conf\"" DisplayName= "MongoDB" start= "auto"

and not

sc.exe create MongoDB binPath= "\"C:\MongoDB\bin\mongod.exe\" --service --config=\"C:\MongoDB\mongod.conf\"" DisplayName= "MongoDB" start= "auto"



 Comments   
Comment by Githook User [ 26/Jun/15 ]

Author:

{u'username': u'i80and', u'name': u'Andrew Aldridge', u'email': u'i80and@foxquill.com'}

Message: DOCS-5527: Improve Windows installation guide

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/6a4ef9e3639bd3762edf946d4365b3b8cef9018e

Comment by Andrew Aldridge [ 24/Jun/15 ]

Currently our instructions assume that you are using Command Prompt rather than Powershell. The reason this fails in Powershell is that it interprets the binPath
"C:\MongoDB\bin\mongod.exe"
as a string value rather than a command.

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