By Wendy Kelly
Installing Mongodb to Ubunto16.04 — after sudo systemctl status mongodb cli returned ● mongodb.service Loaded: masked (/etc/systemd/system/mongodb.service; masked; vendor preset: e
I searched and found a similar issue on stackexchange with the solution of “just unmask”
I did this – and then uninstalled and reinstalled mongodb and now when I sudo systemctl status I get:
● mongodb.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
Happy to provide more information. This is my first time ever asking a development question on the interwebs…
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!
Does running sudo systemctl start mongod work? MongoDB appears to install multiple service files, but it doesn’t look like mongodb.service is meant to be used directly so it is masked by default.
Hello,
In addition to what has already been mentioned, as DigitalOcean now offers Managed MongoDB databases as well, I could suggest giving this a try in case that you are looking for a production-ready soltuon:
https://www.digitalocean.com/blog/introducing-digitalocean-managed-mongodb/
For more information on how to get started, make sure to check out this video here:
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.