Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

时间:2023-03-08 23:02:24
Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

最近工作中有需要用到 MongoDB数据库,以前用的3.*的版本,这次用的是较新4.0.6的版本,然后去官网下载安装。
安装到一半,就弹出如下提示,说是“MongoDB Server”服务启动失败,验证您是否有足够的权限启动系统服务

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

仔细看了下,安装状态在Status:Starting services,说明这个时候MongoDB Server服务已经安装了,然后我打开(services.msc)服务界面,找到MongoDB Server,尝试手动启动一下,看行不行,结果就有了如下弹窗提示。

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

奇怪了,服务确实启动不起来。安装MongoDB时弹窗说验证您是否有足够的权限,然后自己尝试手动启动,又弹了个提示,然而这个弹窗提示也不太懂什么意思,反正MongoDB Server服务起不来就是了。于是去Google找了下原因,最后参考了下面的解决方案。

参考方案: *:Installing MongoDB. failed to start service

打开(services.msc)服务界面,找到MongoDB Server,右键->属性->登录,登录身份选择本地系统账户(L)
设置完成后自己手动启动MongoDB Server服务,或者在刚刚正在安装的MongoDB弹窗提示点击Retry重试,安装程序会帮你启动MongoDB Server服务。

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

Win10 Service'MongoDB Server' failed to start. Verify that you have sufficient privileges to start system services【简记】

最后完成安装,服务也启动起来了。OK,结束!!!