Install MongoDB on CentOS 7

Install database MongoDB pada CentOS 7

  • Update repositoy package centos 7
yum update -y
  • Tambahkan repository MongoDB
nano /etc/yum.repos.d/mongodb-org.repo
[mongodb-org-5.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/5.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-5.0.asc
  • Update repository fast
yum makecache fast
  • Install MongoDB
yum install mongodb-org -y
  • Jalankan service mongodb
systemctl start mongod
systemctl enable mongod
systemctl status mongod

herdiana3389

A system administrator with skills in system administration, virtualization, linux, windows, networking, cloud computing, container, etc.