我已经下载了MongoDB 32位版本,并且已经成功完成了安装。
我做了2个文件夹:1(data
里面db
文件夹2( log
文件夹
当我导航到bin
文件夹并尝试运行mongod
时,它会出现错误。(见截图(
正如这里提到的
仅使用以下选项运行命令
mongod --dbpath MongoDB_Location\data --storageEngine=mmapv1
注意:MongoDB_Location表示放置MongoDB的位置例如:D:\mongodb
编辑:将 --dbpath 放在双引号中,因为您的路径包含空格。
本文将帮助您在Windows上安装MongoDB的步骤。