[MongoDB] 启动报错ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)

原因是文件读取权限不足,执行以下操作

sudo chown -R mongod:mongod /var/lib/mongo
sudo sudo chown -R mongod:mongod /var/lib/mongo
sudo sudo chown -R mongod:mongod /var/log/mongodb
sudo sudo chown mongod:mongod /tmp/*.sock

我操作完之后还是启动失败,但是重启服务器之后就成功启动了

参考

https://blog.csdn.net/clksjx/article/details/102407982

https://blog.csdn.net/qq_42575499/article/details/104332819

你可能感兴趣的:(MongoDB)