우노
[MongoDB] Docker MongoDB Install 본문
- Docker 설치
sudo yum update -y
sudo yum install docker -y
sudo service docker start
sudo usermod -a -G docker ec2-user
- Mongodb container 생성 및 실행
docker run -d --name mongodb -p 27017:27017 mongo
docker exec -it mongodb mongo
'Database > MongoDB' 카테고리의 다른 글
[MongoDB] mongoimport (0) | 2020.07.03 |
---|---|
[MongoDB] Index (0) | 2020.07.02 |
[MongoDB] Delete Collection (0) | 2020.07.02 |
[MongoDB] Delete Database (0) | 2020.07.02 |
[MongoDB] Create User (0) | 2020.07.02 |
Comments