1. The first step: download the appropriate installation package, the current version is 2.6, the URL is:http://www.mongodb.org/downloads.
The installation package has the zip and MSI two formats, and the MSI installation does not let you choose the installation path, which is installed by default to C:\Program Files\mongodb 2.6 standard.
The machine in this example is Windows7 64bit, download 64bit Zip package, unzip to E:\MongoDB directory after download is complete
Create the database directory E:\MongoDB\data, and then in the command-line window, switch to the E:\MongoDB\bin directory to execute the following command:
Where--dbpath is the specified database storage directory, note: Use two "-" instead of one.
Mongod--dbpath E:\MongoDB\data
The command-line window prints some startup information, and the last line appears as the following message to indicate a successful start:
2014-04-23t10:38:48.391+0800 [Initandlisten] waiting for connections on port 27017
then, in the browser input http://localhost:27017/, see The following information
It looks like you is trying to access MongoDB over HTTP on the native driver port.
At this point, MongoDB installation is complete.