MongoDB Learning Series (i)

Source: Internet
Author: User
Tags mongodb win32

The first is the installation. First to download the address: http://www.mongodb.org/Download the latest version, the current I downloaded is: mongodb-win32-x86_64-2.4.2.zip

I am currently decompressing to the directory E:\tools\mongodb-win32-x86_64-2.4.2.

Into the bin directory, add: Data, DB, log directory. As follows:


To facilitate the use of the MongoDB command in a DOS window, add the MongoDB Bin directory to the System environment variable path as follows:


Save it, OK, and then you can test it.

Into DOS, enter MONGO, and the following information appears



Input: Mongod-dbpath "E:\tools\mongodb-win32-x86_64-2.4.2\bin\db", shown below



The first time you enter this command, MONGODB will only open port 27017, enter http://localhost:27017 in the browser, and then output a sentence in DOS

Admin Web Console waiting for connections on port 28017

At this point, and then open the browser, enter: http://localhost:28017/display is the same as the following.

You can see the port now: 28017 has already established the connection to wait for the connection.

Open the browser, enter: http://localhost:28017/display as follows:



MongoDB default has a test database and Foo table, you can use this table to test, for the MongoDB command, the next section records


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.