最近我想启动mongodb服务器,但是当我尝试使用命令行:mongod在我的Windows x32上使用mongodb版本:3.2.18时,我得到了以下错误:
2017-12-29T10:45:56.427+0100 I CONTROL [main]
2017-12-29T10:45:56.427+0100 W CONTROL [main] 32-bit servers don't have journal
ing enabled by default. Please use --journal if you want durability.
2017-12-29T10:45:56.427+0100 I CONTROL [main]
2017-12-29T10:45:56.437+0100 I CONTROL [main] Hotfix KB2731284 or later update
is installed, no need to zero-out data files
2017-12-29T10:45:56.437+0100 I CONTROL [initandlisten] MongoDB starting : pid=7
556 port=27017 dbpath=C:\data\db\ 32-bit host=ROOT-PC
2017-12-29T10:45:56.437+0100 I CONTROL [initandlisten] targetMinOS: Windows Vis
ta/Windows Server 2008
2017-12-29T10:45:56.437+0100 I CONTROL [initandlisten] db version v3.2.18
2017-12-29T10:45:56.437+0100 I CONTROL [initandlisten] git version: 4c1bae566c0
c00f996a2feb16febf84936ecaf6f
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] allocator: tcmalloc
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] modules: none
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] build environment:
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] distarch: i386
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] target_arch: i386
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] options: {}
2017-12-29T10:45:56.447+0100 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
2017-12-29T10:45:56.447+0100 I CONTROL [initandlisten] dbexit: rc: 100
答案 0 :(得分:0)
WiredTiger存储引擎仅适用于64位版本的MongoDB(source)。
如错误消息所示,您必须通过--storageEngine
命令行选项显式提供另一个存储引擎。