简体   繁体   中英

How to stop mongodb server on Windows startup?

I have mongodb installed on windows 10 and it is always working in the background on windows startup and it is just annoying me cause I don't need to work with it all the time so how do I stop it from running on startup or is the only way to actually remove mongodb?

I tried mongo admin --eval "db.shutdownServer()" but that would only close it but after restart mongodb will show up again in the background:(

Go to your windows services.msc and set your mongoDB on manual. To start your DB open admin prompt net start mongodb . To stop it net stop mongodb .

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