Can't connect to Replica Set

I am currently at Lecture: Setting Up a Replica Set. I try to connect to replica set, but I get this

2019-03-23T16:55:50.956+0000 W NETWORK [thread1] Failed to connect to 127.0.1.1:27011, in(checking socket for error aft
er poll), reason: Connection refused

Any help? Thanks.

Please check our forums.You will get clues
ping local host and ping hostname
They should map to 127.0.0.1 not 127.0.1.1
You may have to edit your /etc/hosts file

Check and make the required changes to the /etc/hosts file.
The fix is in the forum