admin管理员组

文章数量:1560818

问题描述

服务器重启后,发现对应的mongodb进程没有启动.

问题解决

通过日志分析,有mongodb.lock问题.

原因为:

When you are aware of a mongod instance running without journaling that stops unexpectedly and you’re not running with replication, you should always run the repair operation before starting MongoDB again. If you’re using replication, then restore from a backup and allow replication to perform an initial sync to restore data.

If the mongod.lock file in the data directory specified by dbPath, /data/db by default, is not a zero-byte file, then mongod will refuse to start,

修复方法

http://docs.mongodb/manual/tutorial/recover-data-following-unexpected-shutdown/

http://docs.mongodb/manual/tutorial/resync-replica-set-member/

本文标签: 重启服务器无法启动进程mongo