Installing Mongodb to Ubunto16.04 — issues from sudo systemctl status & beyond. First "masked" now "not-found"

January 8, 2018 1.4k views

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...

1 Answer

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.

Have another answer? Share your knowledge.