MongoDB is a high-performance, open-source, modeless document-based database that is a popular one in the current NoSQL database. It can be used in many scenarios to replace the traditional relational database or key/value storage methods. MONGO is developed using C + +. Take the window platform as an example.
Http://www.mongodb.org/downloads
Installation:
- First step: Download the installation package: If it is a win system, note whether it is a 64-bit or 32-bit version, please select the correct version.
- Second step: Create a new directory "D:\MongoDB", unzip the downloaded installation package, locate all the. exe files under the bin directory, and copy to the directory you just created.
- Step three: Create a new "data" folder in the "D:\MongoDB" directory, which will be the root folder for data storage.
Configure the MONGO service side:
Database server Mongod.exe and Administrative Tools Mongo.exe
Open the cmd window and enter the command as follows:
> D:
> CD D:\MongoDB
> Mongod--dbpath D:\MongoDB\data
After the configuration is successful, you will see the following screen:
In the browser input: http://localhost:27017/, you can see the following prompt:
You is trying to access MongoDB on the native driver port. For HTTP diagnostic access, add the port number
Thus, the MongoDB database service has been successfully started.
To test a simple JavaScript statement with Mongo.exe:
D:\mondb>mongo
>3+3
6
>db
>test
> Db.foo.insert ({a:1}) > Db.foo.find () {_id: ..., a:1}> show dbs...> show collections...> Help
MongoDB Tutorial First lesson mongodb download installation