Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4900

Wrong command for installing MongoDB on Windows as a service

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • mongodb-3.0
    • None
    • Windows 7

    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.

      Attachments

        Activity

          People

            michael.paik Michael Paik
            unkx80 unkx80
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 50 weeks, 1 day ago