本文介绍了mongodb错误:如何确保已安装日记目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Mac终端上输入mongod
并收到以下错误:
I typed mongod
on in my mac terminal and got the following error:
2015-04-27T22:11:46.471-0400 W - [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
2015-04-27T22:11:46.479-0400 I STORAGE [initandlisten] **************
old lock file: /data/db/mongod.lock. probably means unclean shutdown,
but there are no journal files to recover.
this is likely human error or filesystem corruption.
please make sure that your journal directory is mounted.
found 4 dbs.
see: http://dochub.mongodb.org/core/repair for more information
如何确保已安装日记目录?这样可以解决问题吗?
How do I make sure my journal directory is mounted? Will that solve the problem?
推荐答案
您的关机异常.您应该使用--repair
选项启动mongod.
You have an unclean shutdown. You should start mongod with --repair
option.
mongod --repair
请注意,修复后,您将需要重新启动mongod
Note that after repair you will need to restart mongod
这篇关于mongodb错误:如何确保已安装日记目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!