Yesterday I finished a little project to set up a reusable Vagrant box for MongoDB and Perl Mojolicious experiments. That project is okay as it is right now, but I would like to get at MongoDB from the host system.
It is not painfully difficult, but it would be easy for me to forget. That is why I made a post out of it.
Adjust the Vagrantfile so that the MongoDB guest port is forwarded to a host port.
Inside the box, comment out the bind_ip
line from /etc/mongod.conf
.
Restart the mongod
service.
Connect to Mongo from the host using whatever interface you prefer. I have been enjoying Robomongo.
Backlinks
Added to vault 2024-01-15. Updated on 2024-02-01