Install mongodb database on centos system
This article is based on the centos8 system;
How to check the version of centos that the current system is
Terminal input command
cat /etc/redhat-release
-
Start installing the current database version 6.0 on the official website; view official documents
-
Create mongodb yum source and write basic information
vim /etc/yum.repos.d/mongodb-org-6.0.repo
[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc
- install latest version
sud