For Windows, you will want to choose the default: Windows Server 2008 R2 64-bit and later, with SSL support x64. This includes Windows 10 because it is for Windows Server 2008 R2 64-bit and later. For an introduction to MongoDB please see our other post MongoDB Introduction. MongoDB is a free and open-source cross-platform document-oriented database program.Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. It provides a rich set of GUI tools for anyone who uses MongoDB including database developers and DBAs.
In this tutorials, we are going to show you how to install MongoDb on Windows 10 operating system.
Download MongoDB from the offecial website and follow the below steps.
Select your operating system bit size (32 or 64) and click on Download button. It will ask for your basic information like name and email, then click on the download button, you will see the below screen.
Click on archive hyperlink, then MongoDB automatically start downloading and you can see the file name like mongodb-win32-x86_64-enterprise-windows-64-3.6.3.zip
Copy the file into your favorite location and extract it and rename it as MongoDB-[Version].
Goto MongoDB bin folder and you can find the below files init.
Setup MongoDB :
MongoDB requires a data directory to store the information, for this we need to create a folder with the name of dataand give that folder path to MongoDB as part of the config file. Else we should create a data directory inside C: directory.
Creating mongo.config file :
mongo.config is a plain text file, it contains data folder path, logs path information and etc.
Run MongoDB :
We can run the MongoDB server by running mongod.exe
Now MongoDB server in listining mode. To use the databse and create documents, open another cmd prompt and run the mongo.exe
By executing the above command, you will be enter in to MongoDBβs shell like above.
MongoDB Databases :
Execute simple MongoDB commands to check.
MongoDB gives us above 3 databases (admin,config,local) by default.
Reference :
Happy Learning π
You'll also like:
We can install MongoDB as a windows service. The steps are given below
Prerequisite β
Install Hotfix kb2731284 on the MongoDB Server on Windows Box
STEP1 β Download MongoDB
Download the latest release of MongoDB from http://www.mongodb.org/downloads and select the Mongo package based on an OS version
Have downloaded the 64 bit mongodb-win32-x86_64-3.2.0-signed.msi
STEP 2 β Create a folder c:datadb
MongoDB requires a folder to store db files. The default location is c:datadb
STEP 3 β
Download Mongodb 3.4 For Windows 10 64 Bit
Double click the MSI package and use the default path
STEP 4 β Go to services manager and start the Mongodb service
Download Mongodb 3.2 For Windows 10 64 Bit
STEP 5 β Go to cmd prompt and browse till bin folder and type mongo to start the services
Mongodb Windows 7 32 Bit
Note: Forefront client security was blocking the executable hence the service was not starting. I have stopped it to start the service.