mongo db(mongodb.service)失败,状态14 [英] mongo db (mongodb.service) failed, status 14
问题描述
我在使用mongodb时遇到以下问题.
I am experiencing the following problem using mongodb.
这是我检查状态时的错误:
This is the error, when I check the status:
错误的屏幕截图(mongodb.service,状态14)
Screenshot of the error (mongodb.service, status 14)
我尝试从网站上的每个步骤开始卸载mongodb并重新安装所有内容,当我检查状态时仍然出现相同的错误.我已经发布了错误的屏幕截图.如果这很重要,我正在使用MacBook Pro.
I have tried uninstalling mongodb following every step from the website and install everything again and when I check the status I still get the same error. I have posted the screenshot of the error. I am using MacBook pro if this matters.
如果有人可以帮助我解决此问题,我们将不胜感激.
Would really appreciate, if someone can help me fix this.
推荐答案
通过将所有者更改为monogdb用户/var/lib/mongodb和/tmp/mongodb-27017.lock对我有用.
By changing the owner to monogdb user of /var/lib/mongodb and /tmp/mongodb-27017.lock has worked for me.
sudo chown -R mongodb:mongodb /var/lib/mongodb
sudo chown mongodb:mongodb /tmp/mongodb-27017.sock
这篇关于mongo db(mongodb.service)失败,状态14的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!