Before we put Nodejs web development to say, now say the database, the general collocation of the database is MySQL and MongoDB, today we talk about MongoDB
MongoDB is a database based on distributed file storage, written in the C + + language, designed to provide scalable, high-performance data storage solutions for Web applications.
MongoDB is a high-performance, open-source, modeless document-based database that is officially defined as a bridge between Key-value storage (high performance and high scalability) and traditional RDBMS (rich queries and features).
The following says the installation
: MongoDB's website is: http://www.mongodb.org/
Choose a different version depending on the system
Then unzip the installation
note that after the installation, to establish the Data folder under MongoDB, and then set up Db,log two folders under the Data folder, there are the following folders under MongoDB
C:\mongodb\bin
C:\mongodb\data\db
C:\mongodb\data\log
Guess this folder is used for logging and data.
You need to install the service later
Go to DOS window
>CD C:\mongodb\bin
> C:\mongodb\bin>mongod--dbpath "C:\mongodb\data\db"--logpath "C:\mongodb\data\log\MongoDB.log"--install-- ServiceName "MongoDB"
So the service was installed successfully.
>net Start MongoDB (open service)
>net Stop MongoDB (shutdown service)
So the preparation work is done, the following article will specifically write Mango primer
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
MongoDB Installation and introduction