환경
Aws
RedHat 8
MongoDB 4.4
개요
RedHat에서 MongoDB 설치하고 실행할 때 나타나는 에러 관한 트러블 슈팅
- 해결법
sock 파일에서 권한 관련 문제가 생겼을 경우입니다. 그래서 mongod라는 유저의 권한을 혹시나 적용 안되었을 관련 파일, 폴더에 권한을 재설정해도 해결이 안 되었고 스택 오버플로우의 도움을 받아 해결하였습니다.
mongo 에러 로그
{"t":{"$date":"2022-02-10T00:44:16.121+00:00"},"s":"E", "c":"NETWORK", "id":23024,
"ctx":"initandlisten","msg":"Failed to unlink socket file",
"attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted"}}
for Linux
$ sudo rm -rf /tmp/mongodb-27017.sock
$ sudo service mongod start
https://stackoverflow.com/questions/63562177/mongod-aborts-on-mac
Mongod aborts on Mac
When I try to start mongod on my Mac I get the following error in the log file: {"t":{"$date":"2020-08-24T16:29:32.041+03:00"},"s":"I", "c&qu...
stackoverflow.com