19

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

Clement Amarnath
  • 5,301
  • 1
  • 21
  • 34
user3808955
  • 337
  • 1
  • 2
  • 10

1 Answers1

48

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.

Phil
  • 499
  • 4
  • 4