Couldn't connect to server

Okay, I got as far as step 5 of lab: deploy a replica set, but now step 6 does not work. It says connection refused, after I used the credentials of the admin user I just created:


You did not specify a port number for your mongo command. So, by default, it tries to connect to port 27017. As indicated by the error message, there is no mongod listening at this port. The port is specified in the configuration file you used to start mongod.

Closing this thread as this issue has been resolved.