无法启动mongodb [英] Unable to start mongodb
本文介绍了无法启动mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Windows 7计算机上安装mongodb.当尝试使用mongod命令启动它时,出现此错误. dbpath(\ data \ db)不存在.我按照教程.所有文件夹都存在C:\mongodb\log
,C:\mongodb\data and
C:\mongodb\data\db
.
I'm trying to install mongodb on my window 7 machine. When trying to start it by using the mongod command I get this error. dbpath (\data\db) does not exist. I followed the steps ath the tutorial. All the folders exist C:\mongodb\log
, C:\mongodb\data and
C:\mongodb\data\db
.
推荐答案
默认路径为c:\ data \ db.您正在尝试使用c:\ mongodb \ data \ db.
The default path is c:\data\db. You are trying to use c:\mongodb\data\db.
这意味着您必须对mongod命令使用选项--dbpath c:\ mongodb \ data \ db.
This means you have to use the option --dbpath c:\mongodb\data\db for mongod command.
这篇关于无法启动mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文