업무/sys
[Linux] MongoDB 4.x 설치
sysops
2021. 11. 15. 00:33
728x90
설치환경 :
- Centos 6
- Centos 7
- Centos 8
설치방법
[root@sysops]# vi /etc/yum.repos.d/mongodb-org-4.4.repo
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc
[root@sysops]# yum install -y mongodb-org
[root@sysops]# systemctl start mongod.service
[root@sysops]# systemctl enable mongod.service
실행
[root@sysops]# mongo
728x90