failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: connection refused code example
Example: failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: connection refused
rm /usr/local/var/mongodb/mongod.lock
sudo service mongod restart