About Data/DB
[SOLVED][MongoDB] MongoDB 설치 완료 직후 많이 발생하는 zsh: command not found: mongo 해결 방법
Tradgineer
2023. 9. 4. 10:41
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