win2008 启用 mongodb 服务出错 1053 的解决方法或者安装过程中报Service ‘MongoDB Server’(MongoDB) failed to start.Verify t

win2008 启用 mongodb 服务出错 1053 的解决方法或者安装过程中报如下错误:Service ‘MongoDB Server’(MongoDB) failed to start.Verify that you hava sufficient privileges to start system services.
MongoDB4.0以上版本可以自己安装过程中启动服务,但是往往因为环境等各种原因出现一些启动服务的错误:
win2008 启用 mongodb 服务出错 1053 的解决方法或者安装过程中报如下错误:Service ‘MongoDB Server’(MongoDB) failed to start.Verify that you hava sufficient privileges to start system services.
解决办法是:
卸载MongoDB,先安装vc_redist.x64.exe,或者微软官网下载安装Visual C++ Redistributable for Visual Studio 2015来修复
https://www.microsoft.com/zh-CN/download/details.aspx?id=48145

下载安装Visual C++ Redistributable for Visual Studio 2015如下图,选择正确的版本:
win2008 启用 mongodb 服务出错 1053 的解决方法或者安装过程中报Service ‘MongoDB Server’(MongoDB) failed to start.Verify t
,然后在重新安装MongoDB就没有问题了。