1. First download the MongoDB installation package at the official website:
Http://www.mongodb.org/downloads
Here we download the zip format of the download, the other did not install, will not, will not say.
2. After extracting the file:
3. Set up folder mongondb in D disk:
4. Create the data and log folders in the Mongondb folder. One is used to hold the file, one is to store the log.
5. Copy the entire Bin folder after the decompression and put it in the Mongondb folder.
6. Set the PATH variable:
After you right-click the-----property on your computer:
Add a Path Variable value: ";D: \mongodb\bin";
6. Enter the console, enter the "Mongod.exe--dbpath=d:\mongodb\data" command, there will be a big lump of things, may achieve the desired effect, started the MONGONDB service:
7. Enter in the browser: http://localhost:27017/
8. Do not close the current black window, open another swag, and enter MONGO.
This time indicates that it has been connected to the MongoDB.
9. Although the above method opened the service, but the next time the boot, the use of mongondb still need to restart the service, can be as SQL Server and do not have my SQL to start automatically with the boot? The answer is yes.
Enter Mongod.exe--dbpath=d:\mongondb\data--logpath=d:\mongondb\log\mongodb.log--install in the console; some people say that the output of a string of information. The success; I have nothing to output here, just a string of empty lines.
10. Enter net start MongoDB in the console. A prompt appears that the service has started;
11. Enter MONGO. It'll be connected to test.
12. In My computer--management can see the MONGONDB has been started, or with the boot automatically started