====== Debian, Ubuntu 서비스 ======
===== 서비스설정파일들 =====
debian 서비스파일위치 : /lib/systemd/system/postgresql@.service
pg_lsclusters --> cluster에 등록된 내용, Data directory와 Log file의 설정내용확인
설정파일위치 : **/etc/postgresql/14/main/**
* pg_hba.conf
* postgresql.conf
나의 데이터 위치 : /usr/local/var/garam
나의 로그파일 위치 : /usr/local/var/log/garam
사용자생성
CREATE ROLE postgres SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN REPLICATION BYPASSRLS;
==== 서비스등록 ====
postgreSQL은 서비스 시작User가 database directory를 접근가능해야 한다.
sudo systemctl enable postgresql
sudo systemctl disable postgresql