I don’t know what I am doing wrong. i’m following the steps " Chapter 2: Replicatio Setting Up a Replica Set"
Can anyone please provide clarity to the code
rs.add("m103:localhost:27002")
rs.add("m103:localhost:27003")
and this one
rs.add("m103-repl:localhost:27002")
rs.add("m103-repl:localhost:27003")
2 total, 10 passed, 0 skipped:
[PASS] “localhost:27001 is running”
[PASS] “localhost:27002 is running”
[PASS] “localhost:27003 is running”
[PASS] “Replication is enabled on localhost:27001”
[PASS] “Replication is enabled on localhost:27002”
[PASS] “Replication is enabled on localhost:27003”
[PASS] “Replica set ‘m103-repl’ has the correct name”
[PASS] “The replica set ‘m103-repl’ contains localhost:27001”
[FAIL] “The replica set ‘m103-repl’ contains localhost:27002”
Did you add ‘localhost:27002’ to the replica set ‘m103-repl’?
[FAIL] “The replica set ‘m103-repl’ contains localhost:27003”
Did you add ‘localhost:27003’ to the replica set ‘m103-repl’?
[PASS] “The replica set enforces client authentication”
[PASS] “The replica set m103-repl uses keyfile authentication”
Reset Workspace