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

Last Updated on October 28, 2022 by Vikash Ekka

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://www.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.

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

Leave a Reply

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