September 2018
Beginner to intermediate
192 pages
4h 37m
English
In addition to resetting the IP address, each server which is a member of the replica set needs to be configured as such. As with the IP address binding, there are two ways to identify a server for the set. The first option is to use the following command-line flag when starting mongod (where XXX is the name of the replica set):
mongod --replSet "XXX"
Alternatively, you can add a configuration option to the mongod configuration file as follows:
replication: replSetName: "XXX"
You can then start mongod on each server in the replica set, as you would normally.
Read now
Unlock full access