How to Install MongoDB on Windows

MongoDB is  open source platform independent document based database and it uses JSON-like documets. Further MongoDB provides scalability and flexibility that you can quering and indexing. MongoDB is free and open-source. Versions released prior to October 16, 2018 are published under the AGPL. All versions released after October 16, 2018
You can downlaod MongoDB using this link.(https://www.mongodb.com/download-center/community)
image
Step 1:- Right click on the setup file and click install.
image
Step 2 :- Click Next.
image
Step 3:- Click next to agree to terms and conditions.
image
Step 4 :- You can select complete installation or Custom Installation. If you want to change installation location you should select custom installations.
image
Step 5 :- Click on Install button to install
image
image
once finished appears the below screen
image
Configuration steps of MongoDB
Untill you configure the mongoDB, you can not see the service in the windows services.
So you you need to create two folders for store data and log of your database.
In my case I have created two folders in the D drive.
Data folder :-  D:\mongo\data\db
Log Folder :-   D:\mongo\log
image
Open CMD as Administrator and go to installation location as below.
image
Phaste teh below command to start the Mongo DB Service
mongod --logpath "D:\mongo\log" --logappend --dbpath "D:\mongo\data\db" --directoryperdb --install
image
Then you can see the MongoDB service in the Windows service and you can start service.
image
To start MongoDB go to bin folder using CMD and used below command.
image
Reference :- https://www.mongodb.com/
                       http://datatutors.blogspot.com/2016/04/install-mongodb.html
How to Install MongoDB on Windows How to Install MongoDB on Windows Reviewed by Pubudu Dewagama on 10:56:00 PM Rating: 5