Add the following line into mongodb.conf:
bind_ip = 127.0.0.1
As @Josh Rickard stated in comments: don’t forget to restart the process after updating the config file:
service mongodb restart
Add the following line into mongodb.conf:
bind_ip = 127.0.0.1
As @Josh Rickard stated in comments: don’t forget to restart the process after updating the config file:
service mongodb restart