# 서버 재 부팅 시 postgresql 자동으로 시작하게 하기
/etc/rc.local 파일에
su - postgres -c "/usr/lib/postgresql/14/bin/pg_ctl start -D /database -m fast"
위의 스크립트만 등록해 놓으면 된다.
- 끝 -
'DB > Postgresql' 카테고리의 다른 글
Postgresql Database와 테이블 생성하기 (0) | 2023.05.23 |
---|---|
Postgresql 백업 및 복구 (1) | 2022.12.07 |
Postgresql DB 백업 및 복원 (0) | 2022.12.06 |
Postgresql을 kubernetes에서 실행하기 with EKS (0) | 2022.11.30 |
private망에 ec2를 생성 후 postgresql을 설치 후 pgadmin으로 접근 (0) | 2022.11.25 |