gpt4 book ai didi

mongodb - 默认情况下,32 位服务器没有启用日记功能。如果您想要持久性,请使用 --journal。 - 无法在 Windows 7 32 位上启动 mongo

转载 作者:IT老高 更新时间:2023-10-28 13:17:48 25 4
gpt4 key购买 nike

我无法在 Windows 32 位系统上启动 mongodb。我在 C: 驱动器中创建了\data\db。现在尝试运行 mongod 命令时,出现以下错误:

C:\Program Files\MongoDB\Server\3.2\bin>mongod.exe
2016-03-28T15:14:55.942+0530 I CONTROL [main]
2016-03-28T15:14:55.942+0530 W CONTROL [main] 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
2016-03-28T15:14:55.942+0530 I CONTROL [main]
2016-03-28T15:14:55.942+0530 I CONTROL [main] Hotfix KB2731284 or later update is not installed, will zero-out data files
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] MongoDB starting : pid=6200 port=27017 dbpath=C:\data\db\ 32-bit host=PC265682
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] db version v3.2.4
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] git version: e2ee9ffcf9f5a94fad76802e28cc978718bb7a30
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] allocator: tcmalloc
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] modules: none
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] build environment:
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] distarch: i386
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] target_arch: i386
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] options: {}
2016-03-28T15:14:55.942+0530 I STORAGE [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating
2016-03-28T15:14:55.942+0530 I CONTROL [initandlisten] dbexit: rc: 100

C:\Program Files\MongoDB\Server\3.2\bin>

最佳答案

真正的错误是无法启动服务器。此版本的 mongod 不提供默认存储引擎“wiredTiger”。请明确指定不同的存储引擎,最简单的解决方案是按照示例进行。

例如mongod.exe --storageEngine=mmapv1

有关 MongoDB 存储引擎的更多信息,请参阅 https://docs.mongodb.org/manual/core/storage-engines/

关于mongodb - 默认情况下,32 位服务器没有启用日记功能。如果您想要持久性,请使用 --journal。 - 无法在 Windows 7 32 位上启动 mongo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36259769/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com