1. 작업 환경
Mac terminal
homebrew를 통해 mongodb 설치 완료
2. 문제 상황
owner@Ownerui-Macmini ~ % brew services list
Name Status User File
mongodb-community started owner ~/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
owner@Ownerui-Macmini ~ % mongo
zsh: command not found: mongo
3. 해결 방법
brew install mongodb-community-shell
4. 버전 확인
// 클라이언트 버전 확인
mongo --version
// 서버 버전 확인
mongod --version
owner@Ownerui-Macmini LaunchAgents % mongo --version
MongoDB shell version v5.0.17
Build Info: {
"version": "5.0.17",
"gitVersion": "197466e20bef76222c1ad85204633163beba3009",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
owner@Ownerui-Macmini LaunchAgents % mongod --version
db version v7.0.0
Build Info: {
"version": "7.0.0",
"gitVersion": "37d84072b5c5b9fd723db5fa133fb202ad2317f1",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "aarch64",
"target_arch": "aarch64"
}
}
5. MongoDB 진입 성공
mongo
'About Data > DB' 카테고리의 다른 글
[MongoDB 7] Mac에서 homebrew로 mongodb 7 설치 방법 (0) | 2023.09.06 |
---|---|
[Mac M2][MongoDB] Compass 설치하기 (MongoDB GUI 설치하기) (0) | 2023.09.04 |
[Windows10] VisualStudioCode에서 drawio 파일 열기 (1) | 2021.04.02 |
[MariaDB] 쿼리로 UUID 생성 및 UUID 데이터 최적화 방법 (0) | 2021.03.05 |
[MariaDB] event scheduler ON/OFF & Enable/Disable 방법 (0) | 2020.12.09 |