설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 162건, 최근 0 건
   

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

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

##
## 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