Cannot connect to MongoDB on AWS (errno:111 Connection refused)
"mongo --nodb" will start a "dummy mongod service" and connect you directly into to it.
"mongo" will try to find a mongod service on port 27017 (standard port) on 127.0.0.1 (standard host). Equals: mongo --host 127.0.0.1 --port 27017
To check if your mongod service has started on your server:
$ ps -aux | grep mongo #check if service runs$ netstat -nap | grep 27017 #check if port is 27017
Start your mongod service:
$ sudo service mongod start
If still not working, check your logfile:
$ tail -n100 /var/log/mongodb/mongodb.log