갑자기 잘되던 VSCODE update를 진행 후(추측) mongo DB가 종료되어 재실행하려하니 오류가 났다.
해결하기 위해 진행했던 방법
이번 경우에는 mongodb community error 513이 뜨며 실행이 안됐다.
Bootstrap failed: 5: Input/output error
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/<myUserName>/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist` exited with 5.
에러가 나며 실행이 되지 않았다.
brew services restart mongodb-community 시 재시작은 가능했지만 여전히 1. 과 같은 에러발생
정답은...정식문서에 있었다 해당 페이지에 접속해 정독후
brew install mongodb-community@5.0
을 실행 후 2.를 실행하자 정상적으로 실행되었다.
https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-os-x/