I am trying to add the second replica set to primary.
Primary = 192.168.56.52:27017
Secondary = 192.168.56.136:27017
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# Where and how to store data.
storage:
dbPath: **mypath**\DBs
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: **mypath**\mongod.log
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0
#processManagement:
#security:
#operationProfiling:
replication:
replSetName: configServers
#sharding:
## Enterprise-Only Options:
#auditLog:
#snmp:
#mp:
But when I try I add
rs.add("192.168.56.136:27017")
It shows as picture .
Please help to get run replicaset. Thanks.
I run on windows and start replicaset with service .