This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11861|Reply: 4

CentOS 7 installation mongodb 5.0.1 tutorial

[Copy link]
Posted on 8/7/2021 8:30:40 PM | | | |
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

Linux correctly closes the mongodb database
https://www.itsvse.com/thread-10021-1-1.html

MySQL imports data into the MongoDB database
https://www.itsvse.com/thread-3995-1-1.html

MongoDB v2.4 configuration file parameters
https://www.itsvse.com/thread-3994-1-1.html

Several issues encountered with MongoDb installation startup
https://www.itsvse.com/thread-3993-1-1.html

MongoDb database Robomongo connection tool
https://www.itsvse.com/thread-3992-1-1.html

Create an account and password to log in to MongoDb
https://www.itsvse.com/thread-3221-1-1.html

MongoDB permission role table
https://www.itsvse.com/thread-3220-1-1.html

.NET/C# 4 Ways to Implement MongoDB Queries and Fuzzy Queries [with Source Code]
https://www.itsvse.com/thread-3218-1-1.html

_id queries using MongoDB
https://www.itsvse.com/thread-3214-1-1.html

MongoVE connecting to MongoDB does not show data issues
https://www.itsvse.com/thread-3213-1-1.html

How to check if the current mongodb has WiredTiger storage engine enabled?
https://www.itsvse.com/thread-3212-1-1.html

mongoVUE cannot display collection properly when connected to MongoDB3.2
https://www.itsvse.com/thread-3211-1-1.html

Mongodb implements simple addition, deletion, and query statements
https://www.itsvse.com/thread-3210-1-1.html


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, pleaseReply


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

Linux correctly closes the mongodb database
https://www.itsvse.com/thread-10021-1-1.html
(End)





Previous:Java Map< String, String> four methods of traversal
Next:Spring Cloud Filter fetches the requested content via the ContentCachingRequestWrapper
Posted on 8/12/2021 3:20:07 PM |
11111111111111111111
 Landlord| Posted on 11/19/2021 3:33:20 PM |
 Landlord| Posted on 2/21/2022 4:29:04 PM |
Create an admin account
 Landlord| Posted on 2/21/2022 4:42:24 PM |
Authentication is not required for configuration

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com