설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은
결과보기
EnterpriseDB
총 게시물 183건
목록 글쓰기 이전글 다음글

디비랑-3) 1대의 서버에 2개 이상의 Instance 올리기

글쓴이 : 디비랑   날짜 : 2014-11-19 (수) 14:45   조회 : 9021 인쇄

##
## CentOS 6.4, PostgreSQL 9.2.4 community
##

1. 각각 다른 BASE Directory를 구성.
    a) $PGDATA/database/data
    b) $PGDATA/pgsql/data

2. postgresql.conf의 port를 각각 구성.
    a) port = 5432
    b) port = 5431

3. 각각의 인스턴스를 실행.
    a) pg_ctl start -D 'Default instance path';
    b) pg_ctl start -D 'Another Instance path';

4. 실행 확인.    
    a) pg_ctl status
    b) pg_ctl status


댓글목록

ioseph 2014-12-21 (일) 02:02
4번 작업에서도 -D 옵션이 있어야겠네요.
목록 글쓰기 이전글 다음글

postgresdba.com