📅  最后修改于: 2022-03-11 14:56:58.746000             🧑  作者: Mango
==> 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