Mongo is a database developed for three years. I have never heard of it. This is not a new company. I can't figure it out. The database chooses a Mongo. First, I have no idea about Mongo's security, performance, and data size. He has little information on the Internet. Hi, few people are using it.
I. Mongo
Http://www.mongodb.org/downloads pay attention to your system, my system is XP, So download is 1.8.1 windows 32-bit
Ii. Run and connect to the server
Create two folders/data/DB in disk D (of course any disk can.
Switch to the D Drive in cmd and find the unzipped Mongo folder in the directory.
Example: cd d:/mongodb-win32-i386-1.9.0/bin
Then run mongod to start the Mongo server.
Execute Mongo at the startup of A cmd similarly cd d:/mongodb-win32-i386-1.9.0/bin, then you can write the test code
For example:
> dbtest> // the first write will create the db:> db.foo.insert( { a : 1 } )> db.foo.find(){ "_id" : ObjectId("4dbfa28486ad47603ec6aa29"), "a" : 1 }
Of course, it is best to configure the environment variables for Mongo for convenience, such:
MONGO_HOME=D:/mongodb-win32-i386-1.9.0
Add % pai_home %/bin to the path and it will be OK. Do not forget to separate them.