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