-
1012. MongoDB와 Studio 3T 설치 방법DB/mongoDB 2023. 10. 12. 10:57
🍃MongoDB 설치
https://www.mongodb.com/try/download/community
1. 해당 사이트에서 Community Server의 하단 녹색 [Select package] 클릭
2. 다운로드 버전 선택
3. 설치된 msi 프로그램 실행 [Next]
4. 라이센스 동의 후 [Next] - Complete으로 진행
5. 외부 접근 가능은 : 위의 Network Service user / 로컬만 쓰려면 : 아래 a local or domain user
⭐
path 환경설정 시 알아야 하니
C:\Program Files\MongoDB\Server\7.0\data\ << 복사해 두기
6. Compass는 디비버같은 툴이므로 체크하고 [Next] 후 install
7. 설치 다 하고 막 Yes 누르다가 재부팅 됨;
mongod.exe를 더블클릭
*터미널이 떴다 사라져도 실행 중인 것이니 mongoDB를 시작프로그램에서 검색해서 실행해 주자
(프로세스에서 안 보이면 서비스에서 중단된 걸 실행시켜 주기)
8. 기본 부여된 포트번호(27017)가 URI에 보인다.
[Connect] 클릭
9. 최초에는 유저인증(유저 정보 입력) 없이 쓸 수 있도록 해서 진행이 된다.
10. 환경변수 등록
*컴퓨터 이름(장치이름)이 한글인지 확인,, 에러날 수도 있음
10-1) [고급 시스템 설정]
10-2) 환경 변수 Path에 아까 복사했던 C:\Program Files\MongoDB\Server\7.0\data\ 추가하기
[환경변수] - [사용자 변수] - [편집]
* [시스템 변수]로 해도 상관없다. 사용자가 변경되어도 쓸 수 있다.
10-3) [새로 만들기]
10-2) C:\Program Files\MongoDB\Server\7.0\data\ << 이걸 복사해서 [새로만들기]
🦭Studio 3T 설치
1. 해당 사이트에서 zip 파일 다운로드
https://studio3t.com/download-studio3t-free/
2. 압축 풀고 default로 설치
3. 라이센스 동의 후 [Next]
4. 한 번 더 [Next] 누르면 가입하라고 뜸. 구글로 가입했다.
5. Finish
6. [Add new connection] - " mongodb://localhost " 입력 후 [Next]
*포트번호는 생략해도 된다.
7. 임의의 connection name 부여 후 [Save]
>> localhost-mongodb
8. [Next] 눌러서 진행
9. 암호화 할 때 비밀번호 세팅하란 말. default로 하면 된다. 이후 계속 [Next]
10. 완료. 좌측 상단에서 확인할 수 있다.
'DB > mongoDB' 카테고리의 다른 글
1013. [mongoDB] 인증 (수정 중) (0) 2023.10.13 1012. [MongoDB] NoSQL 입문 (0) 2023.10.12