Skip to content

Commit cf51c0e

Browse files
kennethdyerKenneth P. J. Dyer
andauthored
DOCS-16233 Expands port Description (#4649) (#5077)
* DOCS-16233 Expands port Description (#4649) * DOCS-16233 port 0 configuration * Fixes port number * Adjusts port description * Fixes per Joe --------- Co-authored-by: Kenneth P. J. Dyer <[email protected]> * sets version number --------- Co-authored-by: Kenneth P. J. Dyer <[email protected]>
1 parent 1e177fa commit cf51c0e

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

source/includes/ports.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
.. versionchanged:: 7.0.3
3+
4+
The |port-option| accepts a range of values between ``0`` and ``65535``.
5+
Setting the port to ``0`` configures |mongodb-package| to use an arbitrary
6+
port assigned by the operating system.
7+

source/reference/configuration-options.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,9 @@ Core Options
10121012
The TCP port on which the MongoDB instance listens for
10131013
client connections.
10141014

1015+
.. |port-option| replace:: ``net.port`` option
1016+
.. include:: /includes/ports
1017+
10151018
.. setting:: net.bindIp
10161019

10171020
*Type*: string

source/reference/program/mongod.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ Core Options
196196

197197
The TCP port on which the MongoDB instance listens for
198198
client connections.
199+
200+
.. |port-option| replace:: ``--port`` option
201+
.. include:: /includes/ports
199202

200203

201204

source/reference/program/mongos.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ Core Options
171171
The TCP port on which the ``mongos`` instance listens for
172172
client connections.
173173

174+
.. |port-option| replace:: ``--port`` option
175+
.. include:: /includes/ports
174176

175177

176178
.. option:: --bind_ip <hostnames|ipaddresses|Unix domain socket paths>

0 commit comments

Comments
 (0)