웹(Web)/리눅스(LINUX)

AWS에 mongodb 설치

공.대.남 2022. 12. 27. 15:17
반응형

 

안녕하세요 공대남입니다

aws에 mongodb 설치 후 연동하기 위해 아래의 링크를 첨부합니다.

 

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-amazon/

 

Install MongoDB Community Edition on Amazon Linux — MongoDB Manual

Docs Home → MongoDB Manual MongoDB AtlasMongoDB Atlas is a hosted MongoDB service option in the cloud which requires no installation overhead and offers a free tier to get started.Use this tutorial to install MongoDB 6.0 Community Edition on Amazon Linux

www.mongodb.com

 

1. sudo pip3 install flask Flask-PyMongo

pymongo 설치해줍니다

2.sudo vim /etc/yum.repos.d/mongodb.repo

[mongodb-org-6.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/6.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-6.0.asc

을 복사해 적어줍니다.

3.sudo yum install -y mongodb-org

mongodb을 설치해줍니다.

4.sudo systemctl start mongod

mongodb 실행

5.sudo systemctl status mongod

mongodb 실행점검

728x90
반응형