diff --git a/source/includes/steps-configure-windows-service-for-mongodb.yaml b/source/includes/steps-configure-windows-service-for-mongodb.yaml index a296ddab8df..444e969c65f 100644 --- a/source/includes/steps-configure-windows-service-for-mongodb.yaml +++ b/source/includes/steps-configure-windows-service-for-mongodb.yaml @@ -9,13 +9,13 @@ action: Create a specific directory for MongoDB log files: language: powershell code: | - md "C:\Program Files\MongoDB\log" + md "C:\mongodb\log" - pre: | In the :guilabel:`Command Prompt`, create a configuration file for the :setting:`logpath` option for MongoDB: language: powershell code: | - echo logpath=C:\Program Files\MongoDB\log\mongo.log > "C:\Program Files\MongoDB\mongod.cfg" + echo logpath=C:\mongodb\log\mongo.log > "C:\mongodb\mongod.cfg" --- title: Run the MongoDB service. stepnum: 2 @@ -30,12 +30,12 @@ action: run-time option. language: powershell code: | - "C:\Program Files\MongoDB\bin\mongod.exe" --config "C:\Program Files\MongoDB\mongod.cfg" --install + "C:\mongodb\bin\mongod.exe" --config "C:\mongodb\mongod.cfg" --install - pre: | Modify the path to the ``mongod.cfg`` file as needed. post: | To use an alternate :setting:`dbpath`, specify the path in the - configuration file (e.g. ``C:\Program Files\MongoDB\mongod.cfg``) or + configuration file (e.g. ``C:\mongodb\mongod.cfg``) or on the command line with the :option:`--dbpath ` option. If the :setting:`dbpath` directory does not exist, :program:`mongod.exe` @@ -61,5 +61,5 @@ action: To remove the MongoDB service use the following command: language: powershell code: | - "C:\Program Files\MongoDB\bin\mongod.exe" --remove + "C:\mongodb\bin\mongod.exe" --remove ... diff --git a/source/includes/steps-install-mongodb-on-windows.yaml b/source/includes/steps-install-mongodb-on-windows.yaml index 1fb7827a673..599857c6cc2 100644 --- a/source/includes/steps-install-mongodb-on-windows.yaml +++ b/source/includes/steps-install-mongodb-on-windows.yaml @@ -38,32 +38,16 @@ title: Install the downloaded file. stepnum: 3 ref: extract pre: | - In Windows Explorer, locate the downloaded MongoDB msi file, which + In Windows Explorer, locate the downloaded MongoDB ``msi`` file, which typically is located in the default ``Downloads`` folder. Double-click the ``msi`` file. A set of screens will appear to guide you through the installation process. ---- -title: Move the MongoDB folder to another location (optional). -stepnum: 4 -ref: move-folder -pre: | - To move the MongoDB folder, you must issue the move command as an Administrator. - For example, to move the folder to ``C:\mongodb``: - Select :guilabel:`Start Menu` > :guilabel:`All Programs` > - :guilabel:`Accessories`. - - Right-click :guilabel:`Command Prompt` and select :guilabel:`Run as - Administrator` from the popup menu. -action: - pre: | - Issue the following commands: - language: powershell - code: | - cd \ - move C:\mongodb-win32-* C:\mongodb + You may specify an installation directory if you choose the "Custom" + installation option. These instructions assume that you have + installed MongoDB to ``C:\mongodb``. post: | MongoDB is self-contained and does not have any other system dependencies. You can run MongoDB from any folder you choose. You may install MongoDB in any folder (e.g. ``D:\test\mongodb``) -... +... \ No newline at end of file diff --git a/source/includes/steps-run-mongodb-on-windows.yaml b/source/includes/steps-run-mongodb-on-windows.yaml index e94a79fb2f7..f99d5d4358e 100644 --- a/source/includes/steps-run-mongodb-on-windows.yaml +++ b/source/includes/steps-run-mongodb-on-windows.yaml @@ -33,7 +33,7 @@ action: :guilabel:`Command Prompt`: language: powershell code: | - C:\Program Files\MongoDB\bin\mongod.exe + C:\mongodb\bin\mongod.exe post: | This starts the main MongoDB database process. The ``waiting for connections`` message in the console output indicates that the @@ -41,7 +41,7 @@ post: | Depending on the security level of your system, Windows may pop up a :guilabel:`Security Alert` dialog box about blocking "some features" of - ``C:\Program Files\MongoDB\bin\mongod.exe`` from communicating on + ``C:\mongodb\bin\mongod.exe`` from communicating on networks. All users should select ``Private Networks, such as my home or work network`` and click ``Allow access``. For additional information on security and MongoDB, please see the :doc:`Security Documentation `.