Whenever I type: rs.initiate(), I get the following error message:
rs.initiate()
{ \"info2\" : \"no configuration explicitly specified -- making one\",
Yeah, exactly, or you can change your hostname to something that is already in your /etc/hosts pointing to 127.0.0.1 such as localhost.
With a mac you can do this by typing sudo scutil –-set HostName localhost.
sudo scutil –-set HostName localhost