제가 postgreSQL를 설치한 방법입니다.
어디가 문제인지
pg_ctl -D
/home/pgsql/data -l logfile start 으로 실행시에는
/home/pgsql/bin/pg_ctl:
line 354: logfile: 그런 파일이나 디렉토리가 없음 --> 이런
에러가 나오고..
pg_ctl -D /home/pgsql/data start 으로
실행시에는
밑에와 같은 메세지가 뜨고 데몬은
올라오더군요...
LOG: could not resolve "localhost": name
resolution에서 일시적인 실패 --> 이부분이 걸려서요..
LOG: database system was shut down at 2004-12-20 17:44:46
KST
LOG: checkpoint record is at 0/9B0B8C
LOG: redo record is at 0/9B0B8C; undo record is at 0/0; shutdown
TRUE
LOG: next transaction ID: 536; next OID: 17142
postmaster successfully started
[pgsql@test pgsql]$ LOG: database system is
ready
제가 설치한 순서입니다.
# pwd
/usr/local/src/server
# tar xzvf
postgresql-7.4.6
# cd
postgresql-7.4.6
# ./configure
--prefix=/home/pgsql ?-enable-multibyte-EUC_KR
# make; make
install
# useradd
pgsql
# passwd
pgsql
# mkdir
/home/pgsql/data
# chown pgsql.pgsql
/home/pgsql/data
# chmod 700
/home/pgsql/data
# cd
/home/pgsql
# vi .bash_profile
PATH=$PATH:/home/pgsql/bin
PGLIB=/home/pgsql/lib
PGDATA=/home/pgsql/data
export PATH PGLIB
PGDATA
# su - pgsql
$ source
/home/pgsql/.bash_profile
$ initdb -D /home/pgsql/data
여기까지 입니다.
postgres 사용자을 인증하고 기초 디비를 만드는 것까지는 정상적으로
되는데요..
실행시...
pg_ctl -D
/home/pgsql/data -l logfile start
이 방법으로 하면 위에서
말씀드렸듯이 에러가 나오고요..
pg_ctl -D
/home/pgsql/data start
이방법으로 할때는
로그파일에서 일시적인 실패라는 메세지가 나오네요..
제가 설치한 방법이
잘못된건가요..
다른 문서와는 다른
점이라면
사용자를 postgre 가 아닌
pgsql로 한거 외에는 없는거 같은데요...
문제점을 가르쳐 주시면
감사하겠습니다.
|