Mongodb not starting | failed to start mongod.service: unit mongod.service

Follow below commands to fix mongodb not starting issue on Ubuntu System and other debian

sudo chown -R mongodb:mongodb /var/log/mongodb
sudo chown -R mongodb:mongodb /var/lib/mongodb
sudo chmod -R 755 /var/lib/mongodb
sudo chmod -R 755 /var/log/mongodb
sudo chown mongodb /tmp/mongodb-27017.sock
sudo chgrp mongodb /tmp/mongodb-27017.sock

By Vikash Ekka

Hi All, My name is Vikash Ekka from India. I’m the founder and tech editor of https://vetechno.in. I have completed my Graduation in BCA. I love to write technical articles like Windows, Linux & MAC Tutorials, Tips, Tricks, How To fix, Tutorials About Ethical Hacking & Cyber Security Guide, and Software Review. Currently, I have been working as an IT professional since 2018.

One thought on “Mongodb not starting | failed to start mongod.service: unit mongod.service not found – vetechno”

Leave a Reply to How to install MongoDB on Ubuntu 22.04 - vetechno - VETECHNO Cancel reply

Your email address will not be published. Required fields are marked *