MongoDB 설치 방법
xcode-select --install
brew tap mongodb/brew
brew update
brew install mongodb-community@6.0
2. 디비 시작
일반 프로세스 시작
brew services start mongodb-community@6.0
백그라운드 실행
mongod --config /usr/local/etc/mongod.conf --fork
3. 디비 중지
일반 프로세스 중지
brew services stop mongodb-community@6.0
백그라운드 중지
mongod --config /opt/homebrew/etc/mongod.conf --fork
4. 프로세스 실행 확인
brew services list
ps aux | grep -v grep | grep mongod
5. 몽고디비 Shell 명령어
디비와 Shell과 연결해주는 명령어
mongosh // 예전엔 mongo라는 명령어였음
database를 보여줌
show dbs