Skip to content

DOCS-9681: Fix references to 3.2 #2810

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
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:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\3.2\mongod.cfg" --install
"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe" --config "C:\Program Files\MongoDB\Server\3.4\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:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --remove
"C:\Program Files\MongoDB\Server\3.4\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:\Program Files\MongoDB\Server\3.2\mongod.cfg`` that specifies both
For example, create a file at ``C:\Program Files\MongoDB\Server\3.4\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:\Program Files\MongoDB\Server\3.2\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB\Server\3.2\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB\Server\3.4\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
10 changes: 5 additions & 5 deletions source/includes/steps-run-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ action:
:program:`mongod.exe`, for example:
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --dbpath d:\test\mongodb\data
"C:\Program Files\MongoDB\Server\3.4\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:\Program Files\MongoDB\Server\3.2\bin\mongod.exe" --dbpath "d:\test\mongo db data"
"C:\Program Files\MongoDB\Server\3.4\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 @@ -37,15 +37,15 @@ action:
:guilabel:`Command Prompt`:
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.2\bin\mongod.exe"
"C:\Program Files\MongoDB\Server\3.4\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\Server\3.2\bin\mongod.exe`` from communicating
``C:\Program Files\MongoDB\Server\3.4\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 @@ -59,7 +59,7 @@ pre: |
action:
language: powershell
code: |
"C:\Program Files\MongoDB\Server\3.2\bin\mongo.exe
"C:\Program Files\MongoDB\Server\3.4\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:\Program Files\MongoDB\Server\3.2\bin\mongod.exe"
netsh advfirewall firewall add rule name="Allowing mongod" dir=in action=allow program=" C:\Program Files\MongoDB\Server\3.4\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:\Program Files\MongoDB\Server\3.2\bin\mongos.exe"
netsh advfirewall firewall add rule name="Allowing mongos" dir=in action=allow program=" C:\Program Files\MongoDB\Server\3.4\bin\mongos.exe"

Traffic to and from ``mongos.exe`` Instances
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down