'2013/07'에 해당되는 글 1건
-
2013.07.03
- 계정생성 및 다운로드
- adduser --shell /bin/bash postgres
- mkdir /data01
- mkdir /db
- chown postgres:postgres /data01
- chown postgres:postgres /db
- wget http://ftp.postgresql.org/pub/source/v9.2.2/postgresql-9.2.2.tar.gz
- tar zxvf postgresql-9.2.2.tar.gz
- c, cpp 설치
- yum -y install gcc gcc-c++
- readline 설치
- yum -y install readline-devel
- zlib 설치
- yum -y install zilb-devel
- compile
- postgres 다운 후 압축푼 곳으로 이동
- ./configure --prefix=/db
- make;make install;
- 초기화
- /db/bin/initdb -D /data01
- 서버띄우기
- /db/bin/postmaster -D /data01
Posted by 까망별 음머어