zsh: command not found: mongo

Jimin_Note·2022년 8월 2일
6
post-thumbnail

zsh: command not found: mongo

=>몽고DB 설치하다가 생긴 장애물

  • 몽고DB 설치
$ brew tap mongodb/brew
$ brew install mongodb-community

$ brew services start mongodb-community
==> Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-community)

$ mongo //몽고디비 프롬프트 접속 명령어
>>zsh: command not found: mongo

해결법 1.
몽고디비 재실행 - 실패

$ brew services restart mongodb-community
>> Stopping `mongodb-community`... (might take a while)
==> Successfully stopped `mongodb-community` (label: homebrew.mxcl.mongodb-community)
==> Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-community)

$ mongo 
>>zsh: command not found: mongo 

해결법 2. 성공

$ brew install mongodb-community-shell

profile
Hello. I'm jimin:)

1개의 댓글

comment-user-thumbnail
2023년 2월 6일

감사합니다!

답글 달기