mongoDB启动失败 简单

Sun Apr 01 15:04:03

Sun Apr 01 15:04:03 warning: 32-bit servers don't have journaling enabled by def
ault. Please use --journal if you want durability.
Sun Apr 01 15:04:03
Sun Apr 01 15:04:03 [initandlisten] MongoDB starting : pid=6112 port=27017 dbpat
h=f:\mongodb\data 32-bit host=liulei85650694
Sun Apr 01 15:04:03 [initandlisten]
Sun Apr 01 15:04:03 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are
limited to about 2 gigabytes of data
Sun Apr 01 15:04:03 [initandlisten] **       see http://blog.mongodb.org/post/13
7788967/32-bit-limitations
Sun Apr 01 15:04:03 [initandlisten] **       with --journal, the limit is lower
Sun Apr 01 15:04:03 [initandlisten]
Sun Apr 01 15:04:03 [initandlisten] db version v2.0.4, pdfile version 4.5
Sun Apr 01 15:04:03 [initandlisten] git version: 329f3c47fe8136c03392c8f0e548506
cb21f8ebf
Sun Apr 01 15:04:03 [initandlisten] build info: windows sys.getwindowsversion(ma
jor=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2') BOOST_LIB
_VERSION=1_42
Sun Apr 01 15:04:03 [initandlisten] options: { dbpath: "f:\mongodb\data" }
**************
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
*************
Sun Apr 01 15:04:03 [initandlisten] exception in initAndListen: 12596 old lock f
ile, terminating
Sun Apr 01 15:04:03 dbexit:
Sun Apr 01 15:04:03 [initandlisten] shutdown: going to close listening sockets..
.
Sun Apr 01 15:04:03 [initandlisten] shutdown: going to flush diaglog...
Sun Apr 01 15:04:03 [initandlisten] shutdown: going to close sockets...
Sun Apr 01 15:04:03 [initandlisten] shutdown: waiting for fs preallocator...
Sun Apr 01 15:04:03 [initandlisten] shutdown: closing all files...
Sun Apr 01 15:04:03 [initandlisten] closeAllFiles() finished
Sun Apr 01 15:04:03 dbexit: really exiting now
 
解决办法:删除 data文件夹下的 mongod.lock 文件
原文地址:https://www.cnblogs.com/xiangxiaodong/p/2818805.html