2015-10-28 106 views
0
[email protected] MINGW64/
$ cd /C/MongoDB/bin 

[email protected] MINGW64 /C/MongoDB/bin 
$ mongod 
bash: mongod: command not found 

[email protected] MINGW64 /C/MongoDB/bin 
$ ls 
bsondump.exe* mongodump.exe* mongoperf.exe*  mongotop.exe* 
libeay32.dll* mongoexport.exe* mongorestore.exe* ssleay32.dll* 
mongo.exe*  mongofiles.exe* mongos.exe* 
mongod.exe* mongoimport.exe* mongos.pdb 
mongod.pdb  mongooplog.exe* mongostat.exe* 

[email protected] MINGW64 /C/MongoDB/bin 
$ mongod 
bash: mongod: command not found 

我尝试启动mongodb,但我总是得到命令未找到错误,谁能告诉我为什么?MongoDB启动问题

+0

您是如何安装的MongoDB?你有没有关注https://docs.mongodb.org/manual/installation/? –

+0

我再次阅读手册,我下载了Windows 64位2008 R2 +和我的系统是win8.1 pro x64。我下载错了吗? – user5192042

+0

版本应该没问题..你是否在命令提示符下启动它?你的终端看起来像一个模拟的bash外壳,在Windows上感觉不对劲 –

回答

0

尝试:

mongod.exe用于启动服务器

mongo.exe客户端连接

+0

来解决它如果你是用户windows在命令的末尾使用.exe –

+0

仍然给出同样的错误 – user5192042

+0

也许试试mongodb.exe * –