Download the Mongo DB from the below link
After the successful download, install MongoDB.
“Agree” to the terms and conditions.
Click on complete and Next
Leave it as MongoDb Service.
Proceed to next and wait till the installation is complete.
Click "Finish" to proceed with the Final installation.
After Installation, the Mongo files are created in
Open “CMD ” in the same folder where the ongo files are created.
Run “mongod ” command to start the server
Create a folder as data/db in the C: drive
Then try the “mongod ” command again
Server starts running.
Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“
Run “mongodb ”