异常关闭mongodb无法启动问题

2019-11-28T10:50:47.732+0000 I STORAGE [initandlisten] exception in initAndListen: DBPathInUse: Unable to lock the locfile: /var/mongodb/db/mongod.lock (Resource temporarily unavailable). Another mongod instance is already running on the /var/mongodb/db directory, terminating

异常关闭mongodb后,会有一个mongod.lock文件,mongodb启动检测到会报错。

如果你不是特别介意,可以把这个文件直接删除,再启动。

posted @ 2022-11-14 15:27  秋来叶黄  阅读(485)  评论(0编辑  收藏  举报