首页 > 解决方案 > 如何在 Windows 上启动和停止 mongodb 服务器?

问题描述

开始

   C:\Windows\System32>net start MongoDB
    The MongoDB service is starting.
    The MongoDB service was started successfully.

停止

C:\Windows\System32>net stop MongoDB
The MongoDB service is stopping.
The MongoDB service was stopped successfully.

标签: node.jsmongodbshellmongodb-shell

解决方案


首先。您应该在下一个 cmd 以管理员身份运行它

净停止 MongoDB

和过程完成。


推荐阅读