Skip to content

Commit 8e61647

Browse files
author
Sam Kleinman
committed
minor: correction to replica set
1 parent 5ded242 commit 8e61647

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

source/tutorial/deploy-replica-set.txt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ ports, you can select different ports. See the documentation of the
6969
following options for more information: :option:`--port <mongod --port>`,
7070
:option:`--dbpath <mongod --dbpath>`, and :option:`--replSet <mongod --replSet>`.
7171

72-
.. note::
73-
74-
If you're running each :program:`mongod` instance on a distinct
75-
system, you can omit the :option:`--port <mongod --port>`
76-
option. You will also need to specify the :option:`--bind_ip
77-
<mongod --bind_ip>` option.
78-
7972
Connect to the :program:`mongod` instance with the :program:`mongo`
8073
shell to the first host. If you're running this command remotely,
8174
replace "localhost" with the appropriate hostname. In a new shell
@@ -163,7 +156,10 @@ Use the following configuration for each MongoDB instance.
163156

164157
replSet = rs0
165158

166-
Modify the :setting:`bind_ip` to reflect a secure interface on
159+
You do not need to specify an interface with
160+
:setting:`bind_ip`. However, if you do not specify an interface,
161+
MongoDB will listen for connections on all available IPv4
162+
interfaces. Modify :setting:`bind_ip` to reflect a secure interface on
167163
your system that will be able to access all other members of the set
168164
*and* on which all other members of the replica set can access the
169165
current node. The DNS or host names need to point and resolve to this

0 commit comments

Comments
 (0)