posgresSQL 설치시 에러 내용
169
작성한 질문수 5
안녕하세요. grafana 수강자 입니다. posgresSQL 설치시 에러 내용 입니다. .' Error response from daemon: ports are not available: exposing port TCP 0.0.0.0:5432 -> 127.0.0.1:0: listen tcp 0.0.0.0:5432: bind: address already in use ''
port 번호를 변경하면 실행이 안돼는것 같습니다. 어떻게 해야 할까요?
답변 3
1
안녕하세요. 5432 포트가 이미 사용중인것 같습니다.
linux, mac의 경우 lsof -i :5432 명령어로 사용중인지 여부를 알수 있습니다.
혹은, docker ps 실행해보시면 PORTS 열에서, 이미 postgres를 설치했거나 다른 container가 5432 포트를 사용중인지 알수 있습니다.
docker container 를 지우고 싶다면 docker rm -f 컨데이너ID 로 삭제하실 수 있고,
lsof 명령어에서 PID를 확인하셨다면 kill -9 프로세스ID 로 종료가능합니다.
0
안녕하세요. docker -down -v 해서 다시 설치하면 포트번호는 맞게 들어가는데. 포트가 개방이 안돼는것 같습니다. ; CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fae5488c6056 postgres:latest "docker-entrypoint.s…" 5 seconds ago Restarting (1) 1 second ago postgres_db '
0
안녕하세요. 5432포트를 변경해서 5433으로 변경을하면 ,docker 에서 실행은돼는데. 또다른 에러메세지가 나오네요.. ㅜㅜ
"in 18+, these Docker images are configured to store database data in a
format which is compatible with "pg_ctlcluster" (specifically, using
major-version-specific directory names). This better reflects how
PostgreSQL itself works, and how upgrades are to be performed.
See also https://github.com/docker-library/postgres/pull/1259
Counter to that, there appears to be PostgreSQL data in:
/var/lib/postgresql/data (unused mount/volume)
This is usually the result of upgrading the Docker image without
upgrading the underlying database using "pg_upgrade" (which requires both
versions).
The suggested container configuration for 18+ is to place a single mount
at /var/lib/postgresql which will then place PostgreSQL data in a
subdirectory, allowing usage of "pg_upgrade --link" without mount point
boundary issues.
See https://github.com/docker-library/postgres/issues/37 for a (long)
discussion around this process, and suggestions for how to do so. "
DB 설치하는부분이 힘드네요..
1
혹시 postgres 버전을 변경하셨을까요?
docker-compose down -v
docker-compose up -d설치 내용을 삭제하고 다시 실행해보면 좋을것같습니다.
처음에 실패하고 이것저것 시도 하시면서 뭔가 꼬인것 같습니다.
docker compose에 대해 질문드립니다.
0
10
1
JPA Repository 질문이 있습니다!
1
33
2
페이지네이션 처리를 쿼리에서 하는 방식 질문
1
36
1
강의에 적용한 스크립트를 받아 볼수 있을까요?
0
40
2
디바이스 페어링 문의
0
32
2
yml 작성하다가 에러 발생해서 문의 드립니다.
0
39
2
(강의 6분 50초 부분) Workspace 안에 index.html이 비어있음
0
34
2
섹션2. 1.5쿠버네티스_컨트롤플레인_노드와_워커_노드_그리고 kubeadm으로 쿠버네티스 직접 구성하기-v1.30 오류
0
36
2
강의순서가 바뀌어 있습니다.
0
36
1
설치수업중에 질문드립니다.
1
58
2
섹션 4의 14번 3개의 샘플파일
0
31
2
build.zip 퍄일이 없습니다.
0
41
1
18강 http리퀘스트 부분 오류
0
50
2
무중단 배포
0
58
2
workflows/deploy.yml 궁금증
0
53
2
7~8강 Log Level 관련 상세 설명/명세가 필요할 경우 log.info/warn <-> 주석의 적절한 사용 방법에 대한 질문
1
46
1
n8n 2.x 버전으로 섹션2부터 수업을 들어도 될까요?
0
46
2
33강 도커 빌드 강의의 docker file
0
35
1
Vertex AI Search 에 대해 질문입니다.
0
45
1
ai agent 클로드 연결 오류
0
52
2
fal.ai api 요금
0
49
1
볼륨 마운트 : PC와 AI 작업실 연결 4분 40초부터
0
61
3
맥 - 권한설정
0
47
2
postgres 수업중 case 함수 스크립트 자료
0
50
1





