MongoDB study Note 1: download and install MongoDB

Source: Internet
Author: User
Tags install mongodb mongodb server

MongoDB study Note 1: download and install MongoDB

Taking advantage of these few days, I am ready to learn about the MongoDB database. Today I have simply learned how to download and install MongoDB and created a data warehouse that stores MongoDB. Share with you what you learned today as a blog.

1. Download and install MongoDB

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

1. After Entering the homepage of the official website, click Downloads connection in the upper-right corner of the homepage ,:


2. You can see the latest and previous versions on the page. Here, select the latest version, and Download windows 32-bit. The file format is ZIP, click the ZIP link ,:


3. After you click the connection, a download prompt is displayed. If no prompt is displayed, click the click here link manually ,:


4. decompress the file after the download is complete. There is only one bin directory, that is, the main directory of MongoDB ,:


5. The installation process is to add the bin directory to the path environment variable. After adding the directory, you can use the MongoDB command in any directory to perform MongoDB operations ,:


6. After the path environment variable is configured, enter mongo-version in the command line. If the following prompt is displayed, the installation is successful.


2. Create a place to store MongoDB data

I learned from my learning that if you want to use MongoDB, you need to create a folder that stores MongoDB data like SVN. To facilitate future management, we place the directory of the data file in the same place as the decompressed directory, create a data folder under the directory, and enter mongod-dbpath e in the command line: \ open \ mongodb \ data. After the command is executed, the corresponding instance is started. The default port is 27017. To start the MongoDB server, enter this command, you can also create a bat batch file as needed. Startup effect:


3. Connect to the default database test

After the MongoDB server is enabled, enter mongo localhost: 27017 in the command line to connect to the default test database ,:


Here is a brief description of MongoDB installation. The introduction will be described later.

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.