简体   繁体   English

MongoDB .msi 安装程序不适用于 Windows 10

[英]MongoDB .msi installer not working on Windows 10

I have downloaded the .msi multiple times and tried to run in a variety of ways, however, I cannot install MongoDB on my windows 10 machine.我已经多次下载 .msi 并尝试以多种方式运行,但是,我无法在我的 Windows 10 机器上安装 MongoDB。 When I click the .msi, I get the first "preparing to install" pop-up and then it just goes away.当我单击 .msi 时,我会看到第一个“准备安装”弹出窗口,然后它就消失了。 Nothing happens.没发生什么事。

I tried downloading the zip folder which contains a bunch of .exes.. but still nothing.我尝试下载包含一堆 .exes 的 zip 文件夹。但仍然没有。 I'm not sure how to get this to work on my local.我不知道如何让它在我的本地工作。

Thoughts?想法?

For some reason, the latest documentation doesn't include the manual installation process.出于某种原因,最新的文档不包括手动安装过程。

Download the distribution ZIP and extract it to c:\\mongodb\\ or equivalent.下载分发 ZIP 并将其解压缩到c:\\mongodb\\或等效文件。

Then from the resultant bin directory you can run an administrative powershell command (be sure to replace the paths with real paths that exist on your system):然后从生成的bin目录中,您可以运行管理 powershell 命令(确保用系统上存在的真实路径替换路径):

PS C:\mongodb\bin> ./mongod.exe --install --logpath="c:\\path\\to\\logfile.log" --dbpath="c:\\path\\to\\data\\on\\disc"

This will create a windows service named "MongoDB" which should start automatically.这将创建一个名为“MongoDB”的 Windows 服务,它应该自动启动。 If it doesn't, you can run net start MongoDB from your admin PS prompt.如果没有,您可以从管理员 PS 提示符运行net start MongoDB

Please download Mongodb from there official sites and also there is a very easy guide to install the mongodb on various OS.请从官方网站下载 Mongodb,还有一个非常简单的指南可以在各种操作系统上安装 mongodb。

Reference:- https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/参考:- https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM