欢迎投稿

今日深度:

exception in initAndListen: 12596 old lock file, terminating

exception in initAndListen: 12596 old lock file, terminating,fileexception


#mongd -f /etc/mongodb.conf时报错


monogdb.log日志分析

Unclean shutdown detected.

Please visit http://dochub.mongodb.org/core/repair for recovery instructions.*************

Wed Nov  5 04:14:35.951 [initandlisten] exception in initAndListen: 12596 old lock file, terminating

Wed Nov  5 04:14:35.951 dbexit: 

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: going to close listening sockets...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: going to flush diaglog...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: going to close sockets...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: waiting for fs preallocator...

Wed Nov  5 04:14:35.951 [initandlisten] shutdown: closing all files...

Wed Nov  5 04:14:35.951 [initandlisten] closeAllFiles() finishe

Wed Apr  1 04:14:35.951 dbexit: really exiting now

提示错误分析:存在一个久的mongod.lock文件

根本原因:云主机意外关机,导致数据库未正常关闭

解决办法:删除mongod.lock文件,再次重启数据库

#mv mongod.lock mongod.lock.bak

#mongd -f /etc/mongodb.conf

检查数据库有无异常

后续作业:如果有异常建议执行


>db.repairDatabase()

www.htsjk.Com true http://www.htsjk.com/shujukunews/7262.html NewsArticle exception in initAndListen: 12596 old lock file, terminating,fileexception #mongd -f /etc/mongodb.conf时报错 monogdb.log日志分析 Unclean shutdown detected. Please visit http://dochub.mongodb.org/core/repair for recovery instruction...
相关文章
    暂无相关文章
评论暂时关闭