steevej
(Steeve Juneau)
23
They did not specify how to connect because there is nothing special to do. The information is already there.
From the link you supplied you created a replica set named myReplicaSet which has 3 nodes, the nodes are named mongo1, mongo2 and mongo3, and they all listen on port 27017. The URI to connect to a replica set is of the form:
mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
Just have to replace host1, …, hostN with your hosts. You may leave the port number since you are using the default one.
Running all instances of your replica set within the same physical host is risky. Because if you loose your machine you loose your data.