postgres1 postgresql 설치하기 (AWS, Amazon Linux, dnf, yum) AWS의 Amazon Linux 서버에서 dnf 명령어를 이용하여 postgresql 설치하는 방법여기서 사용되는 dnf명령어는 yum으로 대체할 수 있다. 1) 패키지 조회하기dnf list | grep postgre 2) 패키지 설치하기sudo dnf install postgresql16-server 3) 서비스 등록(systemctl) 확인하기systemctl status postgresql sudo cat /usr/lib/systemd/system/postgresql.servicePGDATA 데이터 경로가 서비스 파일에 등록되어 있다. 데이터 경로 변경 시 서비스 파일도 같이 변경해야 한다. 4) systemctl 시작하기 (오류발생함)sudo systemctl statrt postgresql.. 2024. 12. 19. 이전 1 다음