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

错误信息如下:
exception in initAndListen: 12596 old lock file, terminating
解决方法
1.删除data目录中的.lock文件
2.mongod.exe --repair
3.启动mongod就可以了
原文地址:https://www.cnblogs.com/qq78292959/p/3598646.html