mongodb非正常关闭无法启动的问题

打开mongodb的日志文件发现:exception in initAndListen: 12596 old lock file, terminating

解决方法:

1、删除.../db下的.lock文件   db是数据库存放位置
 
2、进入mongodb的bin目录输入命令 mongod --repair 
 
3、重启mongoDB

猜你喜欢

转载自yangchunhe.iteye.com/blog/1526222