MongoDB is a database based on distributed file storage. Written in C++ language. Designed to provide scalable, high-performance data storage solutions for WEB applications.
MongoDB is a product between relational and non-relational databases, and is the most function-rich and relational database among non-relational databases. It supports a very loose data structure in a JSON-like BSON format, so it can store more complex data types. The biggest feature of Mongo is that the query language it supports is very powerful, and its syntax is somewhat similar to an object-oriented query language, which can implement almost most of the functions of relational database single-table queries, and also supports indexing data.
review
Download Address:The hyperlink login is visible.
Download heremongodb-linux-x86_64-rhel70-5.0.1.tgzInstall the package, do not choose s390x, s390x is the mainframe hardware platform of IBM System zSeries (zSeries), which is used by banks, large enterprises or scientific research institutions, and most users cannot access it.
Once the download is complete, unzip the program to/data/mongodbTable of contents below.
Official installation documentation:The hyperlink login is visible.
Use the following command to install the dependencies required for the MongoDB community tarball
Turn off getenforce
Add toMongod groups and Mongod users(mongodb does not run under root privileges)
Data directory: /data/mongodb/lib Log directory: /data/mongodb/log
Create a command as follows:
Set directory permissions
Configuration parameters:The hyperlink login is visible.
Start the MongoDB service (Use the su mongod command to switch to mongod permissions)
Way 1 (directly via command line arguments)
After successful startup, you can view the /data/mongodb/log/mongod.log file
Run the bin/mongo terminal and create a new administrator account with the following command:
Method 2 (via configuration file)
Create a new mongod.conf file, configure it in YAML format, and enable authentication, as follows:
Tourists, if you want to see the hidden content of this post, please Reply
Run mongod -f mongod.conf
Install the mongodb management client Robo 3T 1.4.3
Download Address:The hyperlink login is visible.
Try using an authenticated connection
Get user commands
Shut down the MongoDB service
(End)
|