SOCO
Mac 환경에서 homebrew이용해서 mongodb 설치하기 본문
설치
1) Brew install mongodb : 에러 발생
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
2) brew install mongodb-community : 에러발생
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
3)brew tap mongodb/brew 하고 난 다음 brew install mongodb-community
참고
https://bongbongreview.tistory.com/73
Mac에서 HomeBrew를 이용한 MongoDB 설치하기
Mac에서 MongoDB를 설치하는 방법은 MongoDB 공식 홈페이지에서 설치파일을 다운로드 받은 후 설치하는 방법도 있으나, HomeBrew를 통해 MongoDB를 설치하는 방법에 대해 포스팅 하려 합니다. HomeBrew가 설
bongbongreview.tistory.com
실행
1) mongod : mongod로 몽고db 실행
mongod 하면 더이상 터미널을 쓸 수 없게 되어야 몽고 디비 데이터베이스가 실행된 것임
2) brew services start mongodb <-> brew services stop mongodb
위의 경우 계속 터미널에 입력 가능하고 shutting down 메시지가 뜨면 몽고디비 설정에 문제가 있다는 것임
따라서 mongod로 몽고db실행이 안 되는 경우
brew로 몽고db를 실행시켜야함
그런데 No available formula with the name "mongodb". 에러발생
3) brew services start mongodb-community < -> brew services stop mongodb-community
이렇게 입력하면
Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-community)
Successfully stopped `mongodb-community` (label: homebrew.mxcl.mongodb-community)
성공!