Skip to content

Commit 4701ca5

Browse files
kennethdyerKenneth P. J. Dyer
andauthored
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]>
1 parent 9ced144 commit 4701ca5

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

source/includes/ports.rst

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

source/reference/configuration-options.txt

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

1104+
.. |port-option| replace:: ``net.port`` option
1105+
.. include:: /includes/ports
1106+
11041107
.. setting:: net.bindIp
11051108

11061109
*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)