I. Approximate INTRODUCTION
- MongoDB-Distributed Document store database
Mongodb, a distributed document storage database, written in the C + + language, is 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 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 + +.
MONGODB[1] is a database based on distributed file storage. MONGODB[2] is a product between a relational database and a non-relational database, the most versatile of the non-relational databases, most like relational databases. The data structure it supports is very loose and is a JSON-like Bjson format, so you can store more complex data types.
The so-called "set-oriented" (collection-oriented), meaning that data is grouped in a dataset, is called a collection (Collection). Each collection has a unique identifying name in the database and can contain an unlimited number of documents. The concept of a collection is similar to a table in a relational database (RDBMS), unlike it does not need to define any schema (schema). Mode Freedom (schema-free) means that for files stored in a MongoDB database, we do not need to know any of its structure definitions. If necessary, you can store files of different structures in the same database. The documents stored in the collection are stored in the form of key-value pairs. The key is used to uniquely identify a document as a string type, whereas a value can be a variety of complex file types. We call this storage form Bson (Binary serialized dOcument Format).
(The above snippet is from the network.) )
Second, installation
(You can use it because you don't have to do anything.) )
1. Download and install
DB1:/home/toughhou/software > Curl-o https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.6. tgztar -xvf mongodb-linux-x86_64-2.6. 6 mv mongodb-linux-x86_64-2.6. 6 /opt/mongodb_2. 6.6
2. Environment variables (just for convenience)
vi /etc/profile#mongoexport mongo_home=/opt/mongodb-2.6. 6 export PATH= $PATH: $MONGO _home//home/toughhou/software > Source/etc/profile
3. Start MongoDB
DB1:/opt/mongodb-2.6. 6/bin >/mongod--dbpath=/opt/mongodb-2.6. 6/data--logpath=/opt/mongodb-2.6. 6/log/mongodb.log--logappend&
/Home/Toughhou/>2.6. 6 to: Test
>00. 078GB
It's OK.
MongoDB Introduction and Installation