Download:
On the official website: http://www.mongodb.org/downloads system download, my system is win7 32-bit, naturally downloaded the http://downloads.mongodb.org/win32/mongodb-win32-i386-2.2.0.zip
Configuration:
1. create d: \ mongodb on disk D: and create a folder named d: \ Mongodb \ data under D: mongodb.
2. Copy the extracted exe file to the D: \ mongodb \ directory.
Usage:
1. Open cmd and go to D: \ mongodb \ To start mongod.exe.
2. Execute mongod.exe -- dbpath "D: \ mongodb \ data", as follows: (-- path followed by dbpath. If there is a space, you must use double "" to reference it)
If a warning occurs, you can ignore it. The problem does not occur during my first use.
Test:
1. Open the new cmd, go to the d: \ mongodb \ directory, and execute cmd.exe.
2. Test basic functions such as insert, update, find, and remove.
3. I learned about the content of mongodb non-relational data storage. When two different records are inserted, the storage structure may be different. During update, only the modified content is updated, but the unmodified part is lost.
Conclusion: for the first time, I used a non-relational database mongodb to record and learn it myself.