最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

MongoDB启动失败问题解决

来源:动视网 责编:小采 时间:2020-11-09 11:40:31
文档

MongoDB启动失败问题解决

MongoDB启动失败问题解决:system :CentOS 5.5 View Log:[root@localhost mongo]# tail -20 /usr/local/mongo/mongodb.log Mon Sep 19 06:14:55 [initand system :CentOS 5.5 View Log:[root@localhost mongo]# tail
推荐度:
导读MongoDB启动失败问题解决:system :CentOS 5.5 View Log:[root@localhost mongo]# tail -20 /usr/local/mongo/mongodb.log Mon Sep 19 06:14:55 [initand system :CentOS 5.5 View Log:[root@localhost mongo]# tail


system :CentOS 5.5 View Log:[root@localhost mongo]# tail -20 /usr/local/mongo/mongodb.log Mon Sep 19 06:14:55 [initand

system :CentOS 5.5

View Log:
[root@localhost mongo]# tail -20 /usr/local/mongo/mongodb.log

Mon Sep 19 06:14:55 [initandlisten] MongoDB starting : pid=4126 port=27017 dbpath=/usr/local/mongo/data 64-bit

Mon Sep 19 06:14:55 [initandlisten] db version v1.8.1, pdfile version 4.5
Mon Sep 19 06:14:55 [initandlisten] git version: nogitversion
Mon Sep 19 06:14:55 [initandlisten] build sys info: Linux localhost.localdomain 2.6.18-238.19.1.el5 #1 SMP Fri Jul 15 07:31:24 EDT 2011 x86_64

BOOST_LIB_VERSION=1_33_1
**************
old lock file: /usr/local/mongo/data/mongod.lock. probably means unclean shutdown
recommend removing file and running --repair
see: for more information
*************
Mon Sep 19 06:14:55 [initandlisten] exception in initAndListen std::exception: old lock file, terminating
Mon Sep 19 06:14:55 dbexit:
Mon Sep 19 06:14:55 [initandlisten] shutdown: going to close listening sockets...
Mon Sep 19 06:14:55 [initandlisten] shutdown: going to flush diaglog...
Mon Sep 19 06:14:55 [initandlisten] shutdown: going to close sockets...
Mon Sep 19 06:14:55 [initandlisten] shutdown: waiting for fs preallocator...
Mon Sep 19 06:14:55 [initandlisten] shutdown: closing all files...
Mon Sep 19 06:14:55 closeAllFiles() finished
Mon Sep 19 06:14:55 dbexit: really exiting now

Analysis:If a server running MongoDB crashed or MongoDB did not get to shut down cleanly for some other reason, you may not be able to start Mongo again, getting "exception in initAndListen std::exception: old lock file, terminating" error in Mongo error log.

Fix is actually pretty easy, you just need to locate mongod.lock file and remove it.

[root@localhost mongo]#rm -rf /usr/local/mongo/data/mongod.lock

文档

MongoDB启动失败问题解决

MongoDB启动失败问题解决:system :CentOS 5.5 View Log:[root@localhost mongo]# tail -20 /usr/local/mongo/mongodb.log Mon Sep 19 06:14:55 [initand system :CentOS 5.5 View Log:[root@localhost mongo]# tail
推荐度:
标签: 错误 解决 问题
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top