Search code examples
windowsmongodbstartup

How can I add mongoDB service on windows startup?


I am trying to add mongoDB service on windows startup but still I am not able to do it.

Every time i have to start mongoDB service manually.

I have looked into how to add application on startup in windows but it only starts application not service like this

enter image description here

So can you help me to find solution to add mongoDB service to startup in windows so it can automatically starts? Thanks in advance.


Solution

  • In windows Control Panel\All Control Panel Items\Administrative Tools\Services you can find the MongoDB Database Server service and change it's Startup Type to Automatic.

    If no MongoDB Database Server service is listed in the services, you need to install it as MongoDB as a Windows service as described here.