IT/서버
PostgreSQL 세션 신규 연결시 에러 (FATAL: sorry, too many clients already)
thesse
2021. 6. 14. 17:31
300x250
반응형
말 그대로 클라이언트 연결 수량이 초과되었다는 뜻
/etc/postgresql/main/posgresql.conf
# /etc/postgresql로 이동
ubuntu@...:/etc/postgresql$ ll
total 12
drwxr-xr-x 3 postgres postgres 4096 May 20 06:18 ./
drwxr-xr-x 106 root root 4096 Jun 4 08:52 ../
drwxr-xr-x 3 postgres postgres 4096 May 20 06:18 13/
# vi 편집기로 main/postgresql.conf 까지 접속
ubuntu@...:/etc/postgresql$ sudo vi 13/
여기에서 max_connection 찾아서 수량 늘려줌
늘려준 후에는 오른쪽 주석이 시키는 대로 리스타트 쳐줘야 함
저장하고 나와서 재시작
ubuntu@d...:/etc/postgresql$ sudo systemctl restart postgresql
300x250
반응형