banner



How to Install and Run Mongodb on Windows 7

A Footfall past Step MongoDB Installation on Windows:

In this educational MongoDB Training Series, we discussed in detail all but the Introduction to MongoDB, its common whereabouts and its history too in our previous tutorial.

In that tutorial, we will see the installation and configuration setup of MongoDB, how it does and how a beginner with no background knowledge could install information technology easily without acquiring help from anyone.

Mongodb in windows

Pre-Requisite Data On Windows

The users of Windows must know that their Windows desktop has got one of the two versions i.e. 32-bit & 64-routine.

This entropy could be found out in the properties of one's "My Computer" or "This Personal computer" on their twist i.e. either their windows is 32-bit Oregon 64-moment.

Further reading =>>Is My Windows 32 bit Or 64 tur

Meanwhile, in rank to check the windows interlingual rendition, one can also use command incit in the way as narrated in the snippet below:

The command is C:\>wmic operating system get osarchitecture

Figure 1: Command To Know Windows Version

Command To Know Windows Version

After finding this out, the 32-bit Windows users would follow the pass to install the translation of MongoDB which supports 32-bit and vice versa. MongoDB is available in both the versions which support their respective 32-bit & 64-bit windows.

For exemplify, 32-scra windows users have got the reward of having qualitative development and testing environments.

Interim, if unmatchable must get into production environments, then they must suffer to adopt 64-bit windows, because therein guinea pig, using 32-bit would specify the information usage which would be stored in MongoDB. Therefore, the 32-bit windows version supports the MongoDB version which has the database size lesser than 2 GigaBytes.

MongoDB Download Along Windows

Click on the following relate to Download MongoDB Along Windows

Figure 2 : To Get the Download File of MongoDB from Internet site

To Get the Download File Of MongoDB From Website

OR

Click on any unitary of the following golf links which suit your Windows Version.

Windows [64-bit]

Windows [32-bit]

Installation Guide On Windows

Come the on a lower floor steps to install the proposed file:

Tread 1: Open the file. We have got installed for 64-bit version with the name arsenic "MongoDB-win32-x86_64-2008plus-ssl-v3.4-latest-subscribed". It is saved in the Topical anesthetic Disk C:/, dawn happening the file where you've blessed it to start the supernatural.

Figure 3

64-bit version - save the file

Step 2: Click "Future".

Design 4

Click "Next". - 64 bit setup

Stair 3: Click the check box next to 'I take up the terms in the License Agreement' and again clink along "Next".

Figure 5

accept the terms in the License Agreement

Step 4: Click "Complete" to install wholly the features of MongoDB. As for "Custom", this option would be victimised to install only the specific components of MongoDB and too if a user wants to change the location of where the installation moldiness be done.

Figure 6

Complete installation of all the features of MongoDB

Measure 5: Click "Install" to begin the instalmen drive.

Figure 7

Click "Install" to begin the installation drive

Visualize 8

installation of drive

Tone 6: After the installation has been fattening. Simply, detent "Eat up".

Figure 9

installation has been finished

Constellation Through Mongo Shell

Later on the whole installment is done, the user must configure it.

Keep up the below steps:

If you use "mongo" in the command prompt without configuring it, then IT would give an error. Hence, configure it first.

Pace 1: Go to the localized disk C and enter "Program Files". There you'll find a folder titled "MongoDB".

Figure 10

Locate MongoDB

Step 2: Open it and you'll find a folder named "bin" i.e. binaries leaflet. You will have 15 to 17 files in information technology. Copy the path, as given in the snippet itinerary i.e. C:\Program Files\MongoDB\Server\4.0\bin

Calculate 11

Bin Folder in MongoDB

Step 3: Open Settings and search "Path".

The ii options given below would dada upward in front of you:

  1. Edit environment variable of your account
  2. Delete the organisation environment variable.

Figure 12

Search "Path"

Step 4: Click on "Blue-pencil the system environment variable" and then click on "Environment Variables".

Work out 13

Environment Variables

Step 5: In the Environment variable, you'll see the path A given in the snippet. Detent "Itinerary" then press "Cut".

Figure 14

Edit Environment variable

Step 6: In the Path given at your scheme, delete the previous ones and add new "The traced path" from binaries, and click "Okey".

Name 15

Copied Path

Step 7: Open Bidding prompts and character "mongod" to jump the Robert William Service.

Figure 16

type "mongod" to start the service.

Step 8: Write command on the command quick "mongo" to create the connection.

Figure 17

write command to create the connection

Step 9: Open Prompt with admin privileges and type: Mv \data\db to form a directory which would be \data\db at the same folder.

Material body 18

make a directory

Then, Get into the folder "data", which would be in the same leaflet i.e. MongoDB at C:/ and then find the file titled "mongod.interlace".

Figure 19

mongod.lock

Step 10: Once more, exposed Binaries i.e. "Binful" and find "mongod.cfg file", if you determine it, then copy this lodge and library paste it in the pamphlet named "data" which is also in the MongoDB folder in C:/. If IT is non Hera then finding in the "data" folder mightiness help, usually, it happens to Be there.

Transcript the course which is "C:\Plan Files\MongoDB\Server\4.0\data" in your organisation.

Figure 20

open Binaries i.e. "Bin" and find

Step 11: Open Command prompt with admin privileges and write this command: mongod –config "C:\ data\mongod.cfg" –install

Jam enrol.

Step 12: Again typecast the bid: mesh pop out mongoDb

The MongoDB pops up with a message "The MongoDb Service was started successfully". You are now good connected the go. MongoDB has been successfully configured.

Configuration Through Robomongo i.e. Robo 3t

To configure MongoDB with non-mercantile MongoDB management tool i.e. Robo 3t, one give the axe easily usage the full command on the mongo shell during configuration.

Step 1: Download Robo 3t and launch the installer.

Figure 21

Download Robo 3t

Maltreat 2: Clink "I agree" to agree to the End-user agreement.

Figure 22

agree to the End user agreement

Tread 3: Click "Next".

Figure 23

install robo 3T

Whole tone 4: Click "Install".

Figure 24

Robo 3T setup

Tone 5: Click "Finish".

Figure 25

Complete Installation

Step 6: Launch the Application & Click "I agree" to the agreement.

Figure 26

Launch the Application & Click "I agree"

Step 7: Click connected "Create" to create a new connexion and save the treat & port as it is given.

Figure 27

create a new connection

Step 8: Clink On "Connect". Formerly it is connected, the user could view each the databases, collections, and documents. Through UI, matchless can insert Documents, edit, update and find documents.

Frame 28

Click On "Connect"

Figure 29

Robo 3T

Dance step 9: Open Compel prompt with admin privileges and type: md \data\db in order to make a directory which would be \information\db at the same folder.

Figure 30

make a directory

MongoDB would make up the database directly at the same booklet or localization as it would be the default location of MongoDB to storage information. IT is finished to make a point that MongoDB would find the directory at the same location when it would come out.

The data moment through Robo 3t is cooked and could be seen by using the mongoimport command with some data to exist stored.

Conclusion

These are the steps to flummox MongoDB installed in your system.

In the higher up installation, the in vogue version of MongoDB software has been installed from the website. A user must comprise sure about the version which has to be the latest one.

We have now successfully installed the NoSQL MongoDB.

Check out our coming teacher to know to a greater extent about Make over and Insert Database in MongoDB!!

PREV Tutorial | Succeeding Tutorial

How to Install and Run Mongodb on Windows 7

Source: https://www.softwaretestinghelp.com/mongodb/install-mongodb/

0 Response to "How to Install and Run Mongodb on Windows 7"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel