今天配置MongoDB的时候,一直错误。看了一下错误信息,[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
在网上搜索一下,原来是32位系统的问题,网上搜索了一下,输入命令mongod.exe -dbpath D:\mongodbData -storageEngine=mmapv1
结果报了另一个错误,
exception in initAndList
en: 29 Data directory C:\data\db\ not found., terminating
原来是dbpath路径错了,换成mongod.exe -dbpath 自己的路径 -storageEngine=mmapv1