I\'ve just installed MongoDB (standard Ubuntu build, not the latest stable) and for some reason I can\'t connect:
Mon Feb 6 03:11:22 Error: couldn\'t connect to
I solved this problem by commenting out the following line in my /etc/mongod.conf file.
/etc/mongod.conf
# Listen to local interface only. Comment out to listen on all interfaces. #bind_ip = 127.0.0.1
You will need to follow this config change with restarting the mongod process.
sudo service mongod restart