I encounter an error when I deploy mongo on ec2, which is quite trivial to solve.
error:
couldn't connect to server...
solution
sudo vim /etc/mongodb.conf
- there's a setting called
bind_ip = 127.0.0.1
- comment the line out
- restart mongo
- connect again!