WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

MongoDB - Installation


Install MongoDB On Windows

First download the modern day launch of MongoDB from https://www.Mongodb.Org/downloadsPlease pick accurate model see your MongoDB relying upon your Windows version. To get your Windows model, open command prompt and execute the following command.
C:>wmic os get osarchitecture
OSArchitecture
sixty four-bit
C:>
32-bit versions of MongoDB handiest support databases smaller than 2GB and appropriate simplest for testing and evaluation purposes. Now extract your downloaded file to c: power or every other area. Make sure the name of the extracted folder is mongodb-win32-i386-[version] or mongodb-win32-x86_64-[version]. Next, open the command prompt and run the following command.
C:>circulate mongodb-win64-* mongodb
   1 dir(s) moved.
C:>
Type following command cd .
C:>md information
C:md datadb

If you need to deploy the MongoDB at a distinctive place, then you definitely want to specify an trade route for datadb through placing the route dbpath in mongod.Exe.

D:set upmongodb
C:UsersXYZ>d:
D:>cd "installation"
D:installation>cd mongodb
D:set upmongodb>cd bin
D:set upmongodbbin>mongod.Exe --dbpath "d:set upmongodbdata" 
This will display anticipating connections message on the console output, which suggests that the mongod.Exe procedure is jogging correctly.
D:set upmongodbbin>mongo.Exe
MongoDB shell model: 2.4.6
connecting to: check
>db.Take a look at.Keep(  a: 1  )
>db.Check.Find()
 "_id" : ObjectId(5879b0f65a56a454), "a" : 1 
>
Next time while you run MongoDB, you want to trouble best instructions.
D:set upmongodbbin>mongod.Exe --dbpath "d:set upmongodbdata" 
D:set upmongodbbin>mongo.Exe
Next set up the MongoDB by using the subsequent command
apt-get set up mongodb-10gen = 2.2.Three

Install MongoDB on Ubuntu

Run the subsequent command to import the MongoDB public GPG key
sudo apt-key adv --keyserver hkp://keyserver.Ubuntu.Com:80 --recv 7F0CEB10
Create a /etc/apt/assets.List.D/mongodb.List report the use of the following sudo tee /and so on/apt/assets.List.D/mongodb.List Now trouble the subsequent command to replace the repository
sudo apt-get replace
In the above installation, 2.2.3 is currently released MongoDB model.



Welookups is optimized for learning.Copy right 2018 kumar aditya singh .
All Right Reserved and you agree to have read and accepted our term and condition.
All Rights Reserved.