Answers for "mongodb service not started"

0

mongodb service not started

==> check /var/log/mongodb and /var/lib/mongodb for mongondb with (user==>mongodb) and the permissions.
sudo mkdir /var/log/mongodb


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

sudo service mongod restart
sudo service mongod status
Posted by: Guest on July-27-2021

Code answers related to "mongodb service not started"

Browse Popular Code Answers by Language