MongoDB Learning Note One: The download and installation of MongoDB

Source: Internet
Author: User
Tags mongodb download mongodb server

MongoDB Learning Note One: The download and installation of MongoDB

Take advantage of these days more idle, ready to learn the MongoDB database, today simply learned some of the MongoDB download and installation, and created a storage MongoDB Data warehouse. Share what you learned today as a blog.

First, the download and installation of MongoDB

MongoDB for:http://www.mongodb.org/

1. After entering the homepage, on the top right of the homepage, click Downloads Connection:


2, in the page can see the latest version and previously released version, here Select the latest version, Windows 32-bit download, the format of the file is in zip format, click the zip Link:


3, click the connection will be prompted to download, if there is no prompt to manually click here Link,:


4. After downloading the file, you can see that there is only one bin directory, which is the main directory of MongoDB:


5, the installation process is to add the bin directory to the PATH environment variable process, add after you can use the MongoDB command in any directory, to do some MongoDB operation:


6, after configuring the PATH environment variable, enter mongo-version on the command line, if you can see the following prompt, then the installation was successful.


Ii. setting up a place to store MongoDB data

Learn from learning, if you want to use MongoDB, like SVN, to create a folder to store MongoDB data, in order to facilitate future management, we put the data file directory in the same place as the decompression directory, in this directory to create a folder, the name is arbitrary, Then enter Mongod–dbpath e:\open\mongodb\data on the command line, after the command execution completes, and will launch the corresponding instance, the default port is 27017, if you want to start the MongoDB server, only need to enter the command, You can also run as a bat batch file as needed. Effect of Startup:


Third, connect the default database test

After the MongoDB server is turned on, enter MONGO localhost:27017 on the command line, which allows you to connect to the default test database:


Here is simply a description of the installation of MongoDB, the introduction will be described in the future.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.