I have given a proven solution of installing mongoDb Directly in windows 10. I was facing a lot of problem and searched in google for reliable source. I tried many possibilities. The solution I get after 4 days is in this short video. Its just a little approach for the developers to save your time.
MongoDb official website: https://www.mongodb.com/
We will use community edition : download from here. : https://www.mongodb.com/download-cent...
install it as complete installation.
-create two folders named "data" and "log" in the same directory where bin folder is located.
The program should install in C:\Program Files\MongoDB\Server\3.4
search for cmd pressing windows key of the keyboard and run as administrator by right clicking on it.
browse the folder where we installed the MongoDB and cd to bin folder to execute shell commands.
After creating folders execute
mongod --directoryperdb --dbpath "C:/Program Files\MongoDB\Server\3.4\data" --logpath "C:\Program Files\MongoDB\Server\3.4\log\mongo.log" --logappend --rest --install
Then execute "net start MongoDB"
Execute mongo to enter the mongo shell
If you have previous installed mongodb uninstall it and after new installation execute "mongo --remove" going to the bin folder from command line. This will unregister previous built.
If you face any problem while installation please comment and let me give you the solution.