diff --git a/source/tutorial/deploy-replica-set.txt b/source/tutorial/deploy-replica-set.txt index 50826fd53c5..be6273f6eb7 100644 --- a/source/tutorial/deploy-replica-set.txt +++ b/source/tutorial/deploy-replica-set.txt @@ -60,7 +60,7 @@ Issue the following commands, each in a distinct screen window: :: mongod --port 27017 --dbpath /srv/mongodb/rs0-0 --replSet rs0 mongod --port 27018 --dbpath /srv/mongodb/rs0-1 --replSet rs0 - mongod --port 27019 --dbpath /srv/mongodb/rs2-2 --replSet rs0 + mongod --port 27019 --dbpath /srv/mongodb/rs0-2 --replSet rs0 These command start members of a replica set named ``rs0``, each running on a distinct port. Alternatively, if you are already using these @@ -220,8 +220,8 @@ replica set. .. code-block:: javascript - rs.add("localhost:27018") - rs.add("localhost:27019") + rs.add("mongodb1.example.net") + rs.add("mongodb2.example.net") Congratulations, after these commands return you will have a fully functional replica set. You may have to wait several moments for the