1.공유 메모리 체크
: 현재 리눅스 시스템의 공유 메모리 체크
#cat /proc/sys/kernel/shmmax
2.대부분의 리눅스 시스템은 위의 명령어로
33554432 와 같은 값을 갖는다(32MB)
이를 늘리자..128MB 로
3.늘리는 방법
#echo 128000000 > /proc/sys/kernel/shmmax
3번의 명령어를 해도 리부팅시에는 위의 설정이 사라진다.
/etc/sysctl.conf 에 적용하면 좋다.
4.postgresql.conf 파일 편집
shared_buffers = 15200
sort_mem = 32168
max_connections=64
fsync=false
위의 15200 은 (128000/8192 다, postgresql 은 8K segment 를 사용한다.)
실행
#/postmaster start > /var/lib/pgsql.log
실행방법
1)
$/usr/local/pgsql/bin/postmaster start > /home/pgsql/pgsql.log
2)
$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
3)
Success. You can now start the database server using:
./postmaster -D /usr/local/pgsql/data [출처] PostgreSQL 처음 실행시 설정할 몇가지 것들|작성자 가우나라
or
./pg_ctl -D /usr/local/pgsql/data -l logfile start
'프로그래밍... > PostgreSQL' 카테고리의 다른 글
트리거 (Trigger) 예제 (1) | 2009.12.31 |
---|---|
PL/pgSQL이란? (0) | 2009.12.22 |
PostgreSQL의 PL/PgSQL 사용법 (0) | 2009.12.22 |
PostgreSQL 언어의 사용법 (PL/PgSQL) (0) | 2009.12.22 |
PostgreSQL 간단한 명령어 (0) | 2009.12.22 |