The final step in the replica set's deployment is to open a mongo shell on only one of the servers in the replica set:
mongo --host <hostname>
You can then run the rs.initiate() command to perform the initialization. In the following example, we are initializing a replica set with three servers, ed, ted, and fred: