Skip to content

DOCS-4353 windows instruction fixes #2128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/includes/steps-configure-windows-service-for-mongodb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <mongod --dbpath>` option.

If the :setting:`dbpath` directory does not exist, :program:`mongod.exe`
Expand All @@ -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
...
26 changes: 5 additions & 21 deletions source/includes/steps-install-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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``)
...
...
4 changes: 2 additions & 2 deletions source/includes/steps-run-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ 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
:program:`mongod.exe` process is running successfully.

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 </core/security>`.
Expand Down