Mongodb Windows安装失败

我正试图在我的本地计算机上安装mongodb。 我有Windows 7和64位。 我正在按照mongo网站上的说明进行操作:

64-bit binaries: Download and extract the 64-bit .zip. Unzip the downloaded binary package to the location of your choice. You may want to rename mongo-xxxxxxx to just "mongo" for convenience. Create a data directory: By default MongoDB will store data in \data\db, but it won't automatically create that folder, so we do so here: C:\> mkdir \data C:\> mkdir \data\db Or you can do this from the Windows Explorer, of course. If you prefer to place datafiles elsewhere, use the --dbpath command line parameter when starting mongod.exe. Run and connect to the server The important binaries for a first run are: mongod.exe - the database server. Try mongod --help to see startup options. mongo.exe - the administrative shell To run the database, click mongod.exe in Explorer, or run it from a CMD window. C:\> cd \mongodb\bin C:\mongodb\bin> mongod Note: It is also possible to run the server as a Windows Service. But we can do that later. 

当我按照这些步骤,我得到以下错误:

 'C:\' is not recognized as an internal or external command, operable program or batch file. 

我不确定发生了什么问题,我完全按照方向行事。 我把我的C盘上的zip文件解压为mongodb。 然后我在我的C驱动器上创build了文件夹数据,并在数据文件夹中创build了文件夹数据库。 我开始Windows cmd行,并按照他们的build议,我得到上述错误。 任何人都可以帮助请。 谢谢。

不要键入C:\> ,这是命令提示符。

例如,只需键入:

cd \mongodb\bin

然后按回车

你可能想要使用这个下载MongoDB的PowerShell,并将其安装为Windows服务… https://gist.github.com/serdarb/5102848