Follow the below steps to install the latest version of MongoDB on Windows by scoop package manager.
scoop install mongodb -g
cd C:\ProgramData\scoop\apps\mongodb\current\bin
mongod.exe --install --serviceName MongoDb --serviceDisplayName MongoDb --config C:\ProgramData\scoop\apps\mongodb\current\bin\mongod.cfg
You can use command line to start/stop MongoDB service or alternatively use the Services
menu in the Task Manager
.
net start MongoDb
net stop MongoDb
Note: tested with MongoDB v7.0.1 on Windows 10.