First, download MongoDB.
Website Download,
or http://www.360sdn.com/opensource-datasource/2015/0403/5584.html Download:
Http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2.6.9.zip
Second, start
Refer to: http://www.cnblogs.com/huangxincheng/archive/2012/02/18/2356595.html
①: Before starting, we will assign a folder to MongoDB, which is named "DB", which is used to store mongodb data.
②: Enter CMD,CD to find the bin path to "MongoDB" and run the Mongod Open command while using--dbpath to specify the data storage location as the "DB" folder.
After that, each time you start MongoDB, enter the following command, and once the DOS window is closed, the MongoDB database shuts down automatically. 】
CD D:\05-tools\06-mongdb\mongodb-win32-x86_64-2.6.6\bin
Mongod--dbpath D:\05-tools\06-mongdb\data\db
Three, the basic operation
Premise: Directly under the installation directory bin, double-click Mongo.exe, or open a CMD,CD to the bin directory, enter the MONGO command opens the shell.
Additions and deletions to check:
<1> Insert Operations
<2> Find operations
① "_id": This field is the default GUID of the database, the purpose is to ensure the uniqueness of the data.
② to write documents strictly in the form of Bson
<3> Update operation
The first parameter of the Update method is criteria for lookup, and the second argument is the updated value.
<4> Remove operation
Iv. Using Visual Tools
MongoDB client MongoVUE1.6.9 Green cracked version
MongoDB's Learning and use