windows 10安装Mongodb 4.4.2启动服务失败

一、安装报错

Service 'MongoDB Server (MongoDB)' (MongoDB) could not be installed. Verify that you have suffcient privleges to install system services.

windows 10安装Mongodb 4.4.2启动服务失败_第1张图片

二、在windows里启动服务失败

Windows 无法启动 MongoDB Server (MongoDB) 服务(位于 本地计算机上).

错误 1503: 服务没有及时响应启动或控制请求


windows 10安装Mongodb 4.4.2启动服务失败_第2张图片

三、解决办法

    1、以管理员身份运行 cmd

    2、运行命令:sc delete MongoDB 删除服务

    3、mongod --install -f “D:\Mongo\mongod.conf”

windows 10安装Mongodb 4.4.2启动服务失败_第3张图片


windows 10安装Mongodb 4.4.2启动服务失败_第4张图片

你可能感兴趣的:(windows 10安装Mongodb 4.4.2启动服务失败)