linux32位mongodb启动报错【exception in initAndListen 】

来源:互联网 发布:rhino wip mac 下载 编辑:程序博客网 时间:2024/05/16 14:22

启动报错日志:
2016-07-08T20:09:19.358-0400 I CONTROL [initandlisten] MongoDB starting : pid=1
984 port=27017 dbpath=/root/mongodb/bin/../db 32-bit host=localhost.localdomain
2016-07-08T20:09:19.359-0400 I CONTROL [initandlisten] db version v3.2.1
2016-07-08T20:09:19.360-0400 I CONTROL [initandlisten] git version: a14d55980c2
cdc565d4704a7e3ad37e4e535c1b2
2016-07-08T20:09:19.362-0400 I CONTROL [initandlisten] allocator: tcmalloc
2016-07-08T20:09:19.362-0400 I CONTROL [initandlisten] modules: none
2016-07-08T20:09:19.364-0400 I CONTROL [initandlisten] build environment:
2016-07-08T20:09:19.364-0400 I CONTROL [initandlisten] distarch: i686
2016-07-08T20:09:19.365-0400 I CONTROL [initandlisten] target_arch: i386
2016-07-08T20:09:19.366-0400 I CONTROL [initandlisten] options: { net: { port:
27017 }, processManagement: { fork: true }, storage: { dbPath: “../db”, mmapv1:
{ smallFiles: true } }, systemLog: { destination: “file”, path: “../log/log.txt”
} }
2016-07-08T20:09:19.444-0400 I STORAGE [initandlisten] exception in initAndList
en: 28663 Cannot start server. The default storage engine ‘wiredTiger’ is not av
ailable with this build of mongod. Please specify a different storage engine exp
licitly, e.g. –storageEngine=mmapv1., terminating
2016-07-08T20:09:19.446-0400 I CONTROL [initandlisten] dbexit: rc: 100

解决方法:
原因是安装mongodb时,默认的storageEngine设置不支32bit版本,需要显示切换,命令案例如下:
./mongod –storageEngine=mmapv1 –dbpath=../db –logpath=../log/log.txt –fork –port 27017 –smallfiles

0 0
原创粉丝点击