As a representative product of NoSQL databases, MongoDB is an open-source database system written in C ++. Adding more nodes at high loads can ensure server performance.
As a representative product of NoSQL databases, MongoDB is an open-source database system written in C ++. Adding more nodes at high loads can ensure server performance.
As a representative product of NoSQL databases, MongoDB is an open-source database system written in C ++. When the server load is high, adding more nodes ensures the server performance. MongoDB is designed to provide scalable, high-performance data storage solutions for WEB applications.
I will not talk about the advantages and advantages of mongodb here. The only thing I want to talk about is that mongodb has three elements: database, set, and document, where "set ", is corresponding to the "table" in the relational database, "document" corresponds to "row ".
1. Installation
On the windows platform, the installation of databases is incredible. MongoDB provides a pre-compiled Binary Package that can be used for 32-bit and 64-bit systems. After downloading the Binary Package, decompress the package directly to the specified directory, even if the installation is complete. You can download and install the Binary Package pre-compiled by MongoDB from the official MongoDB Website:
Configuration and startup
The MongoDB startup process is also very simple. It only takes two steps: creating a data folder and starting a service program.
Finally, check whether it is enabled successfully. The information shows that mongodb uses port 27017. Then, type ": 27017/" in the browser, mongodb tells us that on 27017, Add 1000 can view mongodb management information in http mode.
Run the following command to run the MongoDB server as a Windows Service:
Logpath logappend port yourPortNumber serviceDisplayName install
The following table describes the mongodb startup parameters:
Parameter description
-- Bind_ip: bind the service IP address. If 127.0.0.1 is bound, only local access is allowed.
-- Logpath specifies the MongoDB log file. Note that the specified file is not a directory.
-- Logappend: Use APPEND to write logs
-- Dbpath specifies the database path
-- Port: Specifies the service port number. The default port is 27017.
-- ServiceName indicates the service name.
-- ServiceDisplayNam specifies the service name, which is executed when multiple mongodb services exist.
-- Install specifies to be installed as a Windows service.
3. Basic operations
If you enter mongodbbackend management, you should first open the bindirectories under mongodbdirectory, and then execute the mongo.exe file. MongoDB Shell is an interactive Javascript shell provided by MongoDB to operate and manage MongoDB.
When you enter the mongoDB background, it will be linked to the test document (database) by default ):
The insert command inserts 10 into the x field of the me set.
MongoDB details: click here
MongoDB: click here
Related reading:
MongoDB backup and recovery
CentOS compilation and installation of MongoDB
CentOS compilation and installation of php extensions for MongoDB and mongoDB
CentOS 6 install MongoDB and server configuration using yum
Install MongoDB2.4.3 in Ubuntu 13.04
How to create a new database and set in MongoDB
MongoDB beginners must read (both concepts and practices)
MongoDB authoritative Guide (The Definitive Guide) in English [PDF]