MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked



on MongoDB: Failed to start mongod. Service: Unit MongoDB. Service is masked, you can follow the following steps:
opens the following file:

sudo vim /etc/systemd/system/mongodb.service

Paste the following into the file and save

Description=High-performance, schema-free document-oriented database

ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf


execute the following command:

sudo systemctl enable mongod.service
sudo systemctl daemon-reload
sudo service mongod start

Read More: