简体   繁体   中英

How to stop MongoDB Database Server to run automatically on windows startup?

Every time I start up my pc, the MongoDB database Server automatically starts up on the background by itself.

https://i.stack.imgur.com/Gi4Im.png

Every time I start up my pc, the MongoDB database Server automatically starts up on the background by itself.

This is because you have installed MongoDB as a Windows service.

You can Stop MongoDB Community Edition as a Windows Service . But, this will be for this session only; and again when you start your PC MongoDB will start again.

You can Remove MongoDB Community Edition as a Windows Service . This will not start the MongoDB when you start the PC. Then you must manually start the MongoDB instance. .

First stop the service, then you can disable or remove it.

Stop the service: net stop MongoDB

Disable the service: sc config MongoDB start=disabled

Remove the service: mongod.exe --config <MongoDB configuration file> --remove or sc.exe delete MongoDB

Or you can do all these steps also with your mouse in the Services console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM