In this video tutorial I will explain you the steps to download and install MongoDB on windows 7 computer.
MongoDB comes as zip file and you don’t have to actually run an installer. You just have to extract the zip file, create the directory for database, create directory to store log file and create a configuration file for MongoDB. Then you can start the MongoDB using the configuration file from command prompt. You can also configure the MongoDB to run as service.
MongoDB is increasingly getting popular for managing the Big Data. It come with the connector of various programming languages. So, programmers of supported the programming can use the power of MongoDB to manage their Big Data.
The programming language C, C++, C#, Go (mgo), Java, Perl, PHP, Python, Ruby and Scalaa can be used to create the program for accessing the MongoDB database. Besides these driver for the MongoDB other Community Support drivers can be used to access the MongoBD database.
The main features of the MongoDB includes Ad hoc queries, Indexing, Replication, Load balancing etc.. which makes MongoDB an ideal server to manage the Big Data.
Here is the video tutorial of Installing the MongoBD Server on Windows 7 computer:
Here is the steps to download, install and configure the MongoDB:
Step 1: Download the MongoDB – You can download the latest version of MongoDB from http://www.mongodb.org/downloads
Step 2: Extract the content in a directory say c:\MongoDB\
Step 3: Create the directory to store the data say c:\MongoDB\data
Step 4: Create the directory to store the log files say c:\MongoDB\logs
Step 5: Create the configuration file say mongo.config in the c:\MongoDB\ direcotry with following contents:
##store data here dbpath=c:\mongodb\data ##all output go here logpath=c:\mongodb\logs\mongo.log ##log read and write operations diaglog=3
Step 6: Start the MongoDB using following command:
mongod --config c:\Mongodb\mongo.config
Above command will start the MongoBD server.
Step 7: Check the server
Go to the C:\Mongodb\mongodb-win32-x86_64-2008plus-2.6.1\bin directory:
cd C:\Mongodb\mongodb-win32-x86_64-2008plus-2.6.1\bin mongo
This will connect to the MongoDB server if it is running.
Now you can type the command:
to list download all the databases present on the server.
Step 8: running MongoDB as service
You can use the following command to install the MongoDB server as Windows service
mongod --config c:\mongodb\mongo.config --install
To start the service you can type following command:
net start MongoDB
to stop the service you can type the following command:
net stop MongoDB
to remove the service you can type the following command on command prompt:
In this tutorial you have learned how to install the MongoDB server on Windows 7.
We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.
Posted on: May 16, 2014 If you enjoyed this post then why not add us on Google+? Add us to your Circles