inblog logo
|
guri-tech-blog
    DatabaseInstallPostgreSQLEC2

    AWS EC2에 PostgresSQL 9.6 설치 (패키지설치, tar)

    EC2에 PostgreSQL 9.6 설치 방법 입니다. yum 설치 방식이 아닌 폐쇄형 환경에서 tar File으로 설치할 수 있게 끔 하는 방법입니다.
    Jan 13, 2024
    AWS EC2에 PostgresSQL 9.6 설치 (패키지설치, tar)
    Contents
    설치 환경 설치 경로설치 명령어

    설치 환경

    EC2 : Amazon Linux - Kernel 5.10 (RHEL, CentOS 계열)
    Engine Version : 9.6
    설치방식 : Package (.tar)

    설치 경로

    Engine : /pg/postgresql Data : /pg/data
     

    설치 명령어

    -- 패키지 파일 압축해제 tar -zxvf postgresql-9.6.16.tar.gz -- PG Engine Install ./configure --prefix=/pg/postgresql --with-python --with-openssl --sysconfdir=/pg/data make && make check make install -- DB install /pg/postgresql/bin/initdb -E utf-8 -D /pg/data -- log file ./pg_ctl -D /pg/data -l logfile start -- Listener Port OPEN vi /pg/data/postgresql.conf listen_addresses='*' -- restart /pg/postgresql/bin/pg_ctl -D /pg/data -l logfile restart
     
    Share article
    Contents
    설치 환경 설치 경로설치 명령어

    guri-tech-blog

    RSS·Powered by Inblog