How to connect to mongodb remotely

February 19, 2018 1.8k views
MongoDB Ubuntu Linux Commands

Hi,

How to connect to MongoDB remotely, I have made changes to the file in the Droplet.
File name:-mongod.conf.orig

Thanks!

edited by bobbyiliev
1 Answer

Hello,

I would recommend following part 3 from this step by step tutorial on how to configure remote access for your MongoDB instance:

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-mongodb-on-ubuntu-16-04#part-three-configuring-remote-access-(optional)

Regards,
Bobby

by Melissa Anderson
MongoDB is a document-oriented database that is free and open-source. It is classified as a NoSQL database because it does not rely on a traditional table-based relational database structure ... In Part One of this tutorial we'll use the MongoDB Repository to install the latest version of MongoDB. In Part Two, we'll enable authentication to secure it on the local system. Finally, in Part Three, we'll show how to more securely allow remote connections if they're needed.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!