[英]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?我在 Windows 10 上安装了 mongodb,它总是在 Windows 启动时在后台工作,这让我很烦,因为我不需要一直使用它,所以我该如何阻止它在启动时运行,或者是真正删除 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:(我试过mongo admin --eval "db.shutdownServer()"
但这只会关闭它但重启后 mongodb 会再次出现在后台:(
Go to your windows services.msc
and set your mongoDB on manual.转到您的 windows services.msc
并将您的 mongoDB 设置为手动。 To start your DB open admin prompt net start mongodb
.要启动您的数据库,请打开管理员提示符net start mongodb
。 To stop it net stop mongodb
.停止它net stop mongodb
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.