MongoDB is a product between relational database and non relational database, and is the most powerful and relational database in the relational database.
The supported data structure is very loose and is a JSON-like Bjson format, so you can store more complex data types.
MONGO the most characteristic is that he supports the query language is very powerful, its syntax is similar to the object-oriented query language, almost can achieve similar relational database single table query of most functions, and
It also supports indexing of data.
1. Download MongoDB:
MongoDB's download address:https://www.mongodb.org/downloads/
My system is X64, selected Windows64-bit 2008 r2+ version.
installation of 2.MongoDB
1. Unzip the downloaded. zip compression package, create the path C:\Program Files\mongodb, will extract the bin file copy to this folder under
2. Set up the Data folder C:\Program Files\mongodb\data under C:\Program Files\mongodb, then establish db,log two folders respectively,
There are the following folders under MongoDB
C:\Program Files\mongodb\bin
C:\Program files\mongodb\data\db
C:\Program Files\mongodb\data\log
Create a log file under the log folder MongoDB.log, that is, C:\Program Files\mongodb\data\log\mongodb.log
After completing the above work, administrator status run Cmd.exe
> CD C:\Program files\mongodb\bin
> C:\Program files\mongodb\bin>mongod--dbpath "C:\Program files\mongodb\data\db"--logpath "C:\Program files\ Mongodb\data\log\mongodb.log "--install--servicename" MongoDB "
here MongoDB.log is the start of the log file,--servicename "MongoDB" service named MongoDB
--------------------------------------
Secondary Time service has been installed successfully, running
>net start MongoDB (open service)
>net Stop MongoDB (stop service)
Uninstall the MongoDB service:
> C:\Program files\mongodb\bin>mongod--dbpath "C:\Program files\mongodb\data\db"--logpath "C:\Program" Files\mongodb\data\log\mongodb.log "--remove--servicename" MongoDB " (delete, note not--install)
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.