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!
In part #2, after running sudo systemctl status mongodb, the result is like below,
● mongodb.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Which say Active: inactive (dead), rather than Active: active (running) indicated in the article.
So instead I ran sudo systemctl status mongod, and I got this,
● mongod.service - High-performance, schema-free document-oriented database
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2017-03-04 10:28:55 UTC; 1min 4s ago
Docs: https://docs.mongodb.org/manual
Main PID: 14998 (mongod)
Tasks: 17
Memory: 47.4M
CPU: 1.113s
CGroup: /system.slice/mongod.service
└─14998 /usr/bin/mongod --quiet --config /etc/mongod.conf
Hello, I’m attempting to follow along and getting the following output during step 2:
Failed to start mongod.service: Unit mongod.service not found.
blakers757@ubuntu-1gb-sfo1-01:~$ sudo systemctl status mongod
● mongod.service
Loaded: not-found (Reason: No such file or directory)
Active: failed (Result: exit-code) since Mon 2017-03-06 01:07:05 UTC; 22min ago
Main PID: 10538 (code=exited, status=48)
Mar 06 01:07:05 ubuntu-1gb-sfo1-01 systemd[1]: Started High-performance, schema-free document-oriented database.
Mar 06 01:07:05 ubuntu-1gb-sfo1-01 systemd[1]: mongod.service: Main process exited, code=exited, status=48/n/a
Mar 06 01:07:05 ubuntu-1gb-sfo1-01 systemd[1]: mongod.service: Unit entered failed state.
Mar 06 01:07:05 ubuntu-1gb-sfo1-01 systemd[1]: mongod.service: Failed with result 'exit-code'.
Mar 06 01:10:42 ubuntu-1gb-sfo1-01 systemd[1]: Stopped High-performance, schema-free document-oriented database.
Mar 06 01:21:36 ubuntu-1gb-sfo1-01 systemd[1]: Stopped mongod.service.
Mar 06 01:22:12 ubuntu-1gb-sfo1-01 systemd[1]: Stopped mongod.service.```
I tried uninstalling mongodb according to their official docs and reinstalling, still getting the same output. Any help would be great!
Removing everything again, rebooting my server, and reinstalling solved my issue. I had started with an older tutorial on DO that had me install mongodb 3.2 and configure a systemd task, so even after I removed the file and re-installed mongodb I think it was still hung up somehow on the old installation. In any case, a reboot seemed to fix the issue.
Hello everyone I need your help I follow this tuto but I can not get to know myself from the outside either with another terminal or with Robomongo.
Hello, I have a problem with my user admin
I create a user with role “root” over db admin, and I use this user in my application with NodeJS and mongoose.
When connect my application with MongoDB it is success, but when my application execute find or other operation show me a message error how “user not authorized to execute this command”
Can you help me please?
this is my uri to connect MongoDB uri: mongodb://userinmongo:blablala@localhost:27017/dbname
this is the options to connect options: { auth: { authdb:“admin” } server: { socketOptions: { keepAlive: 1, connectTimeoutMS: 30000 } }, replset: { socketOptions: { keepAlive: 1, connectTimeoutMS : 30000 } } }
Thank you
There’s a typo on Part 2 : Step 2
sudo systemctl status mongodb => should be => sudo systemctl status mongod
Great guide btw.
Thanks
This comment has been deleted
Database security should include things like database firewall, data auditing for compliance (DAM) and data obfuscation in real time. Datasunrise to secure mongodb? datasunrise.com/mongodb/
Thanks for the great tut. After adding the mongo public ip to the bindIp separated by “,” the service does not want to start. any idea why? if I remove the added ip everything works fine
This comment has been deleted