MongoDB Installation Doc - Windows
https://www.mongodb.com/download-center#community
-> Go to this link, you will see the below page
Community
server -> If you want the latest version -> click on the Current
Release -> select the version based
on the requirement(any) -> Click on Download link.
If you want to install the previous
releases
Community
Server -> Previous Releases -> Select the version -> Click the
download link.
Go to downloads folder
Double click
on the mongodb MSI file -> click on next
Accept the
License Agreement -> click on next
Click on
Complete
Click on
Install
Click finish
to complete the installation
Prerequisite to run mongo server
Create a
folder C:\data\db
Run MongoDB Server
Go till bin
path where the mongodb is installed– and
copy it,
C:\Program
Files\MongoDB\Server\3.4\bin
Open Command Prompt
# cd C:\Program
Files\MongoDB\Server\3.4\bin
# C:\Program
Files\MongoDB\Server\3.4\bin>mongod
When you
type mongod, the server will get
started – It starts listening to the default
port 27017 and default data location
/data/db which we have created.
As soon as
you start the mongo server, the default files will get generated as shown
below,
Run the Mongo Client
1)
Keep the server running in one command prompt
2)
Open another new command prompt
# cd C:\Program
Files\MongoDB\Server\3.4\bin
# C:\Program
Files\MongoDB\Server\3.4\bin>mongo
You can
query and see as well
Done…
Tom,
ReplyDeleteVery helpful, informative blog..!!Detailed explanation which helped me learn the mongodb quickly.
Please keep it updated with new articles.
Thanks,
Suresh
Excellent contribution Tom !!
ReplyDeleteGreat article!
ReplyDeletei love the newMSI Prestige 15.
The MSI Prestige 15 has an elegant aluminum design.
The laptop has a sandblasted and rich charcoal texture for a sleek and sophisticated vibe.