MongoDB 无法启动服务器:此版本的 mongod 不提供默认存储引擎“wiredTiger" [英] MongoDB cannot start server: The default storage engine 'wiredTiger' is not available with this build of mongod
问题描述
MongoDB 服务器无法启动,出现以下错误:
MongoDB server failing to start with the following error:
2015-12-13T00:49:12.191+0600 I CONTROL [initandlisten] 选项:{}
2015-12-13T00:49:12.195+0600 I STORAGE [initandlisten] 异常在
2015-12-13T00:49:12.191+0600 I CONTROL [initandlisten] options: {}
2015-12-13T00:49:12.195+0600 I STORAGE [initandlisten] exception in
initAndListen:28663 无法启动服务器.默认存储引擎'wiredTiger' 不适用于此 mongod 版本.请明确指定不同的存储引擎,例如--storageEngine=mmapv1., 终止2015-12-13T00:49:12.195+0600 我控制 [initandlisten] dbexit: rc: 100
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 2015-12-13T00:49:12.195+0600 I CONTROL [initandlisten] dbexit: rc: 100
推荐答案
好吧...似乎存在版本冲突:您可能正在运行 32 位版本的 Mongo.就按他们说的做,实际使用其他默认存储引擎:
Well... There appears to be a version conflict: you are probably running a 32bit version of Mongo. Just do as they say and actually use the other default storage engine:
在你的 Mongo/bin 目录中编写如下命令:
Write the command as follows in your Mongo/bin directory:
mongod --storageEngine=mmapv1 --dbpath [your-path]
应该可以解决问题.我猜您不太介意使用旧的 mmapv1 而不是有线老虎,对吗?
Should solve the problem. I guess you don't quite mind about using the good old mmapv1 instead of wiredTiger do you?
这篇关于MongoDB 无法启动服务器:此版本的 mongod 不提供默认存储引擎“wiredTiger"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!