Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 :(

like image 353
user3808955 Avatar asked Jul 10 '17 11:07

user3808955


1 Answers

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.

like image 51
Phil Avatar answered Sep 20 '22 04:09

Phil