我该如何解决这个MongoDB执行错误?

时间:2019-12-23 08:04:03

标签: database mongodb cmd

我刚刚安装了mongodb。当我从C:\ Program Files \ MongoDB \ Server \ 3.2 \ bin运行mongod.exe时,出现以下错误:

    C:\Program Files\MongoDB\Server\3.2\bin>mongod.exe
    2019-12-23T11:20:44.013+0330 I CONTROL  [main]
    2019-12-23T11:20:44.014+0330 W CONTROL  [main] 32-bit servers don't have journal
    ing enabled by default. Please use --journal if you want durability.
    2019-12-23T11:20:44.014+0330 I CONTROL  [main]
    2019-12-23T11:20:44.018+0330 I CONTROL  [main] Hotfix KB2731284 or later update
    is not installed, will zero-out data files
    2019-12-23T11:20:44.039+0330 I CONTROL  [initandlisten] MongoDB starting : pid=4
    628 port=27017 dbpath=C:\data\db\ 32-bit host=alireza-PC
    2019-12-23T11:20:44.039+0330 I CONTROL  [initandlisten] targetMinOS: Windows Vis
    ta/Windows Server 2008
    2019-12-23T11:20:44.039+0330 I CONTROL  [initandlisten] db version v3.2.22
    2019-12-23T11:20:44.040+0330 I CONTROL  [initandlisten] git version: 105acca0d44
    3f9a47c1a5bd608fd7133840a58dd
    2019-12-23T11:20:44.041+0330 I CONTROL  [initandlisten] allocator: tcmalloc
    2019-12-23T11:20:44.041+0330 I CONTROL  [initandlisten] modules: none
    2019-12-23T11:20:44.042+0330 I CONTROL  [initandlisten] build environment:
    2019-12-23T11:20:44.043+0330 I CONTROL  [initandlisten]     distarch: i386
    2019-12-23T11:20:44.043+0330 I CONTROL  [initandlisten]     target_arch: i386
    2019-12-23T11:20:44.044+0330 I CONTROL  [initandlisten] options: {}
    2019-12-23T11:20:44.045+0330 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
    2019-12-23T11:20:44.046+0330 I CONTROL  [initandlisten] dbexit:  rc: 100

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

我必须提到我已经创建了文件C:\ data \ db,事实并非如此。

0 个答案:

没有答案