本文介绍了MongoDB“默认存储引擎"wiredTiger"不适用于此版本的mongod". +" ..no/data/db文件夹.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先安装MongoDb并运行mongod命令后在C:\Program Files\MongoDB\Server\3.2\bin>目录中,出现错误:

After first installing MongoDb and running the mongod command in the C:\Program Files\MongoDB\Server\3.2\bin> directory, I get the error:

然后是第二个错误

运行Windows 10 32位.

Running windows 10 32-bit.

我遇到了两个不同的问题,(正如问题标题所言),我将它们组合起来解决了我的问题.我希望这将为其他新手在同一条船上提供参考.所以,谢谢大家的反对:)

I had two different problems, (as the question title says) I combined them to solve my problem. I hope this will serve as a reference to other newbies if they are in the same boat. So thanks for the down votes, people :)

推荐答案

我执行了以下操作:

  1. 以管理员身份运行Node.js命令提示符
  2. 创建一个C:\ data \ db目录
  3. 运行"cd C:\ Program Files \ MongoDB \ Server \ 3.2 \ bin"命令
  4. 执行"mongod --storageEngine = mmapv1 --dbpath C:\ data \ db"

即,如下所示:

*** C:\ Program Files \ MongoDB \ Server \ 3.2 \ bin> mongod --storageEngine = mmapv1 --dbpath C:\ data \ db

*** C:\Program Files\MongoDB\Server\3.2\bin> mongod --storageEngine=mmapv1 --dbpath C:\data\db

PS:对不起,但是回答我自己的问题的原因是,我希望这对其他人有帮助,只要他们处于我的位置即可.

PS: Sorry people, but the reason for answering my own question is that I hope this will help someone else if they ever are in my position.

请参考这个问题的答案(我从那里借来的):

Please refer to this question's answers(I borrowed from there) :

MongoDB无法启动服务器:默认的存储引擎"wiredTiger"不适用于此版本的mongod

这篇关于MongoDB“默认存储引擎"wiredTiger"不适用于此版本的mongod". +" ..no/data/db文件夹.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 14:00