mongodb启动服务失败的解决办法之一

  • 分类:【MongoDd
  • 浏览【571】
  • 评论【0】
  • 更新【2014-11-16 11:46:38】

在执行下面第一行启动mongodb服务的时候,命令行一闪而过,具体看了下输出内容看不出端倪来,不过解决办法却是有的,就是直接删除掉D:\Data\db下面的mongod.lock文件可以了


C:\Program Files\MongoDB 2.6 Standard\bin>mongod --dbpath=D:\Data\db
2014-11-16T11:35:43.244+0800
2014-11-16T11:35:43.252+0800 warning: 32-bit servers don't have journaling enabl
ed by default. Please use --journal if you want durability.
2014-11-16T11:35:43.253+0800
2014-11-16T11:35:43.282+0800 [initandlisten] MongoDB starting : pid=8272 port=27
017 dbpath=D:\Data\db 32-bit host=hp
2014-11-16T11:35:43.283+0800 [initandlisten]
2014-11-16T11:35:43.284+0800 [initandlisten] ** NOTE: This is a 32 bit MongoDB b
inary.
2014-11-16T11:35:43.284+0800 [initandlisten] **       32 bit builds are limited
to less than 2GB of data (or less with --journal).
2014-11-16T11:35:43.284+0800 [initandlisten] **       Note that journaling defau
lts to off for 32 bit and is currently off.
2014-11-16T11:35:43.285+0800 [initandlisten] **       See http://dochub.mongodb.
org/core/32bit
2014-11-16T11:35:43.286+0800 [initandlisten]
2014-11-16T11:35:43.286+0800 [initandlisten] targetMinOS: Windows XP SP3
2014-11-16T11:35:43.286+0800 [initandlisten] db version v2.6.4
2014-11-16T11:35:43.287+0800 [initandlisten] git version: 3a830be0eb92d772aa855e
bb711ac91d658ee910
2014-11-16T11:35:43.287+0800 [initandlisten] build info: windows sys.getwindowsv
ersion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
BOOST_LIB_VERSION=1_49
2014-11-16T11:35:43.290+0800 [initandlisten] allocator: system
2014-11-16T11:35:43.292+0800 [initandlisten] options: { storage: { dbPath: "D:\D
ata\db" } }
**************
Unclean shutdown detected.
Please visit http://dochub.mongodb.org/core/repair for recovery instructions.
*************
2014-11-16T11:35:43.360+0800 [initandlisten] exception in initAndListen: 12596 o
ld lock file, terminating
2014-11-16T11:35:43.362+0800 [initandlisten] dbexit:
2014-11-16T11:35:43.364+0800 [initandlisten] shutdown: going to close listening
sockets...
2014-11-16T11:35:43.365+0800 [initandlisten] shutdown: going to flush diaglog...

2014-11-16T11:35:43.367+0800 [initandlisten] shutdown: going to close sockets...

2014-11-16T11:35:43.368+0800 [initandlisten] shutdown: waiting for fs preallocat
or...
2014-11-16T11:35:43.369+0800 [initandlisten] shutdown: closing all files...
2014-11-16T11:35:43.371+0800 [initandlisten] closeAllFiles() finished
2014-11-16T11:35:43.373+0800 [initandlisten] dbexit: really exiting now

关键字词: