Starting and stopping MongoDB as a service

There are two methods to start and stop MongoDB as a service on Windows.

  1. Run a Command Prompt as Administrator and type one of the following commands:
    • net start MongoDB
    • net stop MongoDB
  2. Open the Services panel from the Task Manager and start/stop the MongoDB service from there.