[英]Mongodb Windows Install Fail
我正在尝试在本地计算机上安装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驱动器上创建了文件夹数据,并在data文件夹内创建了文件夹db。 我启动Windows cmd行,并按照他们的建议进行操作,并且出现上述错误。 谁能帮忙。 谢谢。
不要键入C:\\>
,这是命令提示符。
例如,只需键入:
cd \\mongodb\\bin
然后按回车 。
您可能要使用这个可以下载mongodb并将其作为Windows服务安装的Powershell ... https://gist.github.com/serdarb/5102848
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.