MongoDB - Replication
The following ports are configured for primary and secondary servers
Replicaset Name
Create three directories to store the data of the instances
Assign Port numbers and log files path
Interconnect all nodes
Output Screen Shot is given below
intiate config using the command below
Check the Status
Output Screen Shot is given below