Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This method is counter to MongoDB’s own recommendation at the top of their installation guide:
The unofficial mongodb package provided by Ubuntu is not maintained by MongoDB. You should always use the official MongoDB mongodb-org packages, which are kept up-to-date with the most recent major and minor MongoDB releases.
In the code, it should be bindIp and not bind_ip. I created a mongodb server using one click apps. But whenever I add multiple IP address for bindIP or even change the default value then config file shows error. Any suggestions?
I’m confused why you linked that part two adding authentication article?
That article uses a mongod.conf file whereas here it’s mongodb.conf, so it doesn’t help.
When I searched online it seems that the mongodb.conf file indicates you’re using an older version of mongo, but I’m running 3.6.3
I followed this tutorial, and now my mongodb is broken. How can I uninstall it completely? I tried “sudo apt-get remove mongodb”, but it doesn’t work.
So I ran through the tutorial and when I do a db.version() I get a 3.6.3 however I agree there is something up with the mongodb.conf vs mongod.conf… the other major difference I found was that this config file is in the older text style and not the newer YAML / YML format. That was problematic as I wanted to setup a replica set. after starting over and using the mongo repos I agree that it’s best to use the mongo repos as that seems to give me a more consistent installation with what is on the mongo db site documentation wise.
Why hasn’t anyone responded to any of the issues in these comments?
This guide is the #1 result on google for installing mongodb on ubuntu 18 on digital ocean and it’s not the right way?
I’m using Ubuntu 19.04 and was having problems with the commands
sudo systemctl start|stop|enable|disable mongodb
On my system, after installation, I have /lib/systemd/system/mongod.service and therefore need to use the above command with ‘mongod’ not ‘mongodb’
The configure to add IP is no longer valid.
When you are to execute this step Add your server’s IP address to the bindIP value:, be sure to change it to
bindIp: [127.0.0.1, X.X.X.X]