0

开始

   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.
4

2 回答 2

0

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

净停止 MongoDB

和过程完成。

于 2021-06-09T15:10:35.883 回答
0

First you have install as a service named MongoDB:

Refer this link to Run MongoDB as a Service in Windows

Then you can use the net start MongoDB and net stop MongoDB

于 2020-01-20T11:19:41.330 回答