服务器重启后,mongodb无法启动

2015-11-03  籽藤 

解决办法源自:

http://stackoverflow.com/questions/6857781/what-is-the-use-of-the-mongo-lock-file

Mongodb always creates the mongodb.lock file when the server starts and drops it before mongodb is stopped.

Removing mongodb.lock does not affect any data it just means that mongodb was not stopped correctly. So, you are correct in removing this file and running with the -repair option should fix database.

419°/4194 人阅读/0 条评论 发表评论

登录 后发表评论