본문 바로가기
💾Database & Server

[Database & Server] 에러 노트

by inbeom 2023. 8. 22.
728x90

Database 사용 중 발생한 에러를 정리하는 곳입니다.

 

DB connection 에러

에러 코드

- Connection to 172.16.60.130:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

발생 원인

- DB(postgres) Server가 꺼져있음

해결 방법

-  해당 서버 Shell(Linux)에 접근하여 DB Server 실행. ( /home/postgres/pg_startup.sh )

- /home디렉토리에 db명으로 된 디렉토리가 없다면 /usr/pgsql-14/bin/pg-ctl 파일을 직접 start해야 한다.

-  ps -ef| grep postgres 명령어로 postgres 실행 상태 확인 ( /usr/pgsql-10/bin/postgres -D /data/DB/postgres/10/data )

 

 

728x90