Skip to content

Commit 348064c

Browse files
kennethdyerKenneth P. J. Dyer
andauthored
Docs 16233 port v4.4 (#5082)
* 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 fb76cde commit 348064c

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:: 4.4.26
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
@@ -814,6 +814,9 @@ Core Options
814814

815815

816816

817+
.. |port-option| replace:: ``net.port`` option
818+
.. include:: /includes/ports
819+
817820
.. setting:: net.bindIp
818821

819822
*Type*: string

source/reference/program/mongod.txt

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

188188
The TCP port on which the MongoDB instance listens for
189189
client connections.
190+
191+
.. |port-option| replace:: ``--port`` option
192+
.. include:: /includes/ports
190193

191194

192195

source/reference/program/mongos.txt

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

167+
.. |port-option| replace:: ``--port`` option
168+
.. include:: /includes/ports
167169

168170

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

0 commit comments

Comments
 (0)