mongodb exception in initAndListen: 12596 old lock file, terminating 解决方法

错误信息如下:

exception in initAndListen: 12596 old lock file, terminating

基本上都是由于服务器断电等异常中断重启引起

解决方法

1.删除data目录中的.lock文件

2.dos进入bin目录 运行  mongod.exe --repair

3.启动mongod就可以了

原文地址:https://www.cnblogs.com/101key/p/3248751.html