How to install mongodb and mongodb services:-
1 Download mongo db software and install. Link is https://www.mongodb.com/download-center#community.
2 Download mongo db core chief software and install. Link is https://studio3t.com/download/
3 Create two folder on local drive one is data(C:\mongodb\data\db--Create in this way) and another is log (C:\mongodb\log- Create in this way) inside the mongodb folder.
4 open the cmd and run the command>>> cd C:\Program Files\MongoDB\Server\3.4\bin.
5 Run the command>> mongod --logpath C:\mongodb\log\mongo.log --dbpath C:\mongodb\data\db --directoryperdb --install.
6 Go to service and start mongo db service