Skip to content

DOCS-8177: Harmonize Windows instructions with installer defaults #2727

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
4 changes: 2 additions & 2 deletions source/includes/release-specifications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ source:
file: release-base.yaml
ref: _install-windows
replacement:
location: 'C:\mongodb'
location: 'C:\Program Files\MongoDB\Server\{{version}}\'
addlocal: 'all'
---
ref: install-windows-addlocal
source:
file: release-base.yaml
ref: _install-windows
replacement:
location: 'C:\mongodb'
location: 'C:\Program Files\MongoDB\Server\{{version}}\'
addlocal: 'MonitoringTools,ImportExportTools,MiscellaneousTools'
...
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ action:
option to specify the previously created configuration file.
language: powershell
code: |
"C:\mongodb\bin\mongod.exe" --config "C:\mongodb\mongod.cfg" --install
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\3.2\mongod.cfg" --install
post: |
To use an alternate :setting:`dbpath`, specify the path in the
configuration file (e.g. ``C:\mongodb\mongod.cfg``) or
Expand Down Expand Up @@ -59,5 +59,5 @@ action:
To remove the MongoDB service use the following command:
language: powershell
code: |
"C:\mongodb\bin\mongod.exe" --remove
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --remove
...
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pre: |
# don't wrap the text above to avoid breaking something in primer
action:
pre: |
For example, create a file at ``C:\mongodb\mongod.cfg`` that specifies both
For example, create a file at ``C:\Program Files\MongoDB\Server\3.2\mongod.cfg`` that specifies both
:setting:`systemLog.path` and :setting:`storage.dbPath`:
language: yaml
code: |
Expand All @@ -47,7 +47,7 @@ action:
- pre: "Create the MongoDB service."
language: powershell
code: |
sc.exe create MongoDB binPath= "C:\mongodb\bin\mongod.exe --service --config=\"C:\mongodb\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB\Server\3.2\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
post: |
``sc.exe`` requires a space between "=" and the configuration values
(eg "binPath= "), and a "\\" to escape double quotes.
Expand Down
2 changes: 1 addition & 1 deletion source/includes/steps-install-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pre: |
.. note::

These instructions assume that you have installed MongoDB
to ``C:\mongodb``.
to ``C:\Program Files\MongoDB\Server\3.2\``.
post: |
MongoDB is self-contained and does not have any other system
dependencies. You can run MongoDB from any folder you choose. You may
Expand Down
12 changes: 6 additions & 6 deletions source/includes/steps-run-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ action:
:program:`mongod.exe`, for example:
language: powershell
code: |
C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --dbpath d:\test\mongodb\data
- pre: |
If your path includes spaces, enclose the entire path in double
quotes, for example:
language: powershell
code: |
C:\mongodb\bin\mongod.exe --dbpath "d:\test\mongo db data"
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --dbpath "d:\test\mongo db data"
post: |
You may also specify the ``dbpath`` in a :doc:`configuration file
</reference/configuration-options>`.
Expand All @@ -36,16 +36,16 @@ action:
:guilabel:`Command Prompt`:
language: powershell
code: |
C:\mongodb\bin\mongod.exe
"C:\Program Files\MongoDB\Server\3.2\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:\mongodb\bin\mongod.exe`` from communicating on
networks. All users should select ``Private Networks, such as my home or
``C:\Program Files\MongoDB\Server\3.2\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 </security>`.
---
Expand All @@ -58,7 +58,7 @@ pre: |
action:
language: powershell
code: |
C:\mongodb\bin\mongo.exe
"C:\Program Files\MongoDB\Server\3.2\bin\mongo.exe
post: |
If you want to develop applications using .NET, see the documentation
of :ecosystem:`C# and MongoDB </drivers/csharp>` for more information.
Expand Down
4 changes: 2 additions & 2 deletions source/tutorial/configure-windows-netsh-firewall.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ following example:

.. code-block:: bat

netsh advfirewall firewall add rule name="Allowing mongod" dir=in action=allow program=" C:\mongodb\bin\mongod.exe"
netsh advfirewall firewall add rule name="Allowing mongod" dir=in action=allow program=" C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe"

You can allow all access for a :program:`mongos.exe` server, with the
following invocation:

.. code-block:: bat

netsh advfirewall firewall add rule name="Allowing mongos" dir=in action=allow program=" C:\mongodb\bin\mongos.exe"
netsh advfirewall firewall add rule name="Allowing mongos" dir=in action=allow program=" C:\Program Files\MongoDB\Server\3.2\bin\mongos.exe"

Traffic to and from ``mongos.exe`` Instances
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion source/tutorial/install-mongodb-enterprise-on-windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ You can set up the MongoDB server as a :guilabel:`Windows Service` that
starts automatically at boot time.

The following procedure assumes you have installed MongoDB using the
``.msi`` installer with the path ``C:\mongodb\``.
``.msi`` installer with the path ``C:\Program Files\MongoDB\Server\3.2\``.

If you have installed in an alternative directory, you will need to
adjust the paths as appropriate.
Expand Down
2 changes: 1 addition & 1 deletion source/tutorial/install-mongodb-on-windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ You can set up the MongoDB server as a :guilabel:`Windows Service` that
starts automatically at boot time.

The following procedure assumes you have installed MongoDB Community using the
``.msi`` installer with the path ``C:\mongodb\``.
``.msi`` installer with the path ``C:\Program Files\MongoDB\Server\3.2\``.

If you have installed in an alternative directory, you will need to
adjust the paths as appropriate.
Expand Down