MongoDB-installation and configuration, MongoDB-installation Configuration

Source: Internet
Author: User

MongoDB-installation and configuration, MongoDB-installation Configuration
Zookeeper

Recently, we formed a team to welcome a new BS project, campus video management, and many people thought about MongodDB when we talked about videos. At that time, they were very confused and did not know what to do, so I went to see all kinds of documents and thought about installing and playing first.

After reading a variety of materials, I learned that the installation is somewhat different from that of SQLServer, So I recorded the installation and configuration process.

1. (select the appropriate version for installation ):

Http://www.mongodb.org/downloads

2. installation:

(1) create a folder on disk D (other disks can also be used) and copy the downloaded folder in the installation package to the new folder. :

(2) create a new folder to store your liabd data.

3. Start the Database Service

(1) Press Win + r, Enter cmd to open the command window, and enter the following command:

(2) Press enter to see that the following startup is successful:

4. Configure environment variables (to avoid entering specific paths when executing programs in the bin folder)

(1) copy the path under the new folder MongoliaBD.

(2) Find the environment variable in the control panel

(3) select path for editing:

Click OK. The environment variable is set successfully!

In this way, when starting the service, you only need to enter the mongod program name, and you can find the corresponding execution program without entering the specific path:

It can be started successfully!

The MongoDB document model is free and flexible. It is very suitable for Internet applications with large data volumes and high concurrency and meets our needs for this project. This time, we have the opportunity to learn new things. MongoDB learning has just begun.


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.