https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/
Install MongoDB Community Edition on Ubuntu — MongoDB Manual
Docs Home → MongoDB ManualMongoDB 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 5.0 Community Edition on LTS (long-ter
www.mongodb.com
Setting up MongoDB v5.0 on Ubuntu 20: "core-dump: STATUS 4/ILL"
I am trying to install and start a MongoDB on a fresh installation of Ubuntu 20 (it’s literally the first thing I did after sshing onto the server). I followed the setup tutorial and did the following steps: curl -fsSL https://www.mongodb.org/static/pgp/
www.mongodb.com
General 프로세스
보통 아래와 같은 방식으로 진행하지만, 제가 진행하는 환경이 Raspberry Pi이므로 다른 버전으로 다시 진행해야 합니다.
- MongoDB public GPG key 가져오기
>> wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
- 우분투 버전 확인 (20.04)
>> lsb_release -dc - 버전에 맞는 리스트 파일 만들기
>> echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list - Local package database 리로드
>> sudo apt-get update - MongoDB 설치
>> sudo apt-get install -y mongodb-org - MongoDB 시작
>> sudo systemctl start mongod
Raspberry Pi 버전
https://www.mongodb.com/developer/how-to/mongodb-on-raspberry-pi/
Install & Configure MongoDB on the Raspberry Pi
Install and correctly configure MongoDB on Raspberry Pi
www.mongodb.com
MongoDB | 설치하기, 삭제하기
1. 몽고DB의 public GPG key 주입 ubuntu@dev:~$ wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - OK 2. 몽고DB를 위한 리스트 파일 생성 ubuntu@dev:~$ echo "d..
typo.tistory.com
https://askubuntu.com/questions/107177/how-can-i-remove-gpg-key-that-i-added-using-apt-key-add
How can I remove gpg key that I added using apt-key add -?
I don't need the key in my server's keyring anymore. Is it possible to remove it? I added the key using this command: curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add - Thanks...
askubuntu.com
4.4버전 설치를 위한 MongoDB 5.0 버전 완전히 삭제 (Downgrade)
- MongoDB 5.0 삭제하기
>> sudo apt-get remove mongodb-*
>> sudo apt-get purge mongodb-*
>> sudo rm -rf /var/log/mongodb
>> sudo rm -rf /var/lib/mongodb - GPG key 삭제
>> sudo apt-key list (5.0버전 키 확인)
>> sudo apt-key del {keyid} (5.0버전 키 삭제) - 리스트 삭제
>> sudo rm /etc/apt/sources/list.d/mongodb-org-5.0.list
MongoDB 4.4 설치
- MongoDB public GPG key 가져오기 (4.4 버전)
>> wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
- 리스트파일 생성
>> echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list - mongodb 패키지 다운로드
>> sudo apt-get update - MongoDB 설치
>> sudo apt-get install -y mongodb-org - MongoDB 시작
>> sudo systemctl daemon-reload
>> sudo systemctl enable mongod (service에 등록)
>> sudo systemctl start mongod
>> sudo systemctl status mongod (실행 확인)
MongoDB 계정 생성
https://dev-woody.tistory.com/64
MongoDB 계정 생성하기
1. Root 계정 생성하기 MongoDB를 처음 설치하고 실행하였다면, MongoDB의 Root 계정부터 생성해주어야 한다. MongoDB쉘에서 다음 작업을 진행해주다. use admin myadmin이라는 아이디와 비밀번호 mypassword를 가
dev-woody.tistory.com
- shell 접속
>> sudo mongo - 계정 생성
>> db.createUser( { user: "myuser", pwd: "myuserpassword", roles: ["dbOwner"] })
'만들기 > EagleEye' 카테고리의 다른 글
[EagleEye][환경세팅] 채팅 서버 설치 (Vartalap) - 2차 시도 (0) | 2022.05.04 |
---|---|
[EagleEye][환경세팅] 채팅 서버 설치 (Vartalap) - 1차 시도 (0) | 2022.05.03 |
[EagleEye][환경세팅] Docker 설치 (0) | 2022.04.27 |
[EagleEye][환경세팅] Redis 설치 (0) | 2022.04.27 |
[EagleEye][환경세팅] Nginx 설치 (0) | 2022.04.26 |