目前版本的 mongodb (4.0)只支持win7、win8和win8.1,对于win10是不支持的,若是需要在win10上面安装与运行,需要在windows官网下载相应的window10的补丁。这个补丁在 mongodb的操作文档中也有提及:
Windows 2012 Server and Windows 10 need KB2999226 to provide Universal C Runtime support for Windows.
在弹出的页面中:
Microsoft Visual Studio 2015 creates a dependency on the Universal CRT when applications are built by using the Windows 10 Software Development Kit (SDK). You can install this update on earlier Windows operating systems to enable these applications to run correctly.
这里提供了相关补丁的下载地址,以及一些相关的使用说明。
mongodb的服务很小,就是将其安装包解压出来就可以了,所以,如果在 win10 下面不安装这个补丁,也是可行的