Postgres 8.1.4 is not starting in RHEL 4

From: Manish Pillai <manishg_pillai(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Postgres 8.1.4 is not starting in RHEL 4
Date: 2006-12-01 06:33:57
Message-ID: 414317.51890.qm@web52308.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi
I installed 8.1.4 POSTGRESQL RPMS on my system. When I tried to run /etc/init.d/postgresql start I got this error.

[root(at)newdell init.d]# ./postgresql start
Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/pg_log': File exists
[FAILED]
Starting postgresql service: [FAILED]

Then i removed "pg_log" and given

[root(at)newdell data]# pg_ctl --log /tmp/pg.log start
pg_ctl: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.

Then i cahnged the user as postgres

[root(at)newdell data]# su postgres
bash-3.00$ pg_ctl --log /tmp/pg.log start
pg_ctl: no database directory specified and environment variable PGDATA unset
Try "pg_ctl --help" for more information.
bash-3.00$

Please help me

Thanks
Manish


---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2006-12-01 09:28:45 Re: Postgres 8.1.4 is not starting in RHEL 4
Previous Message Aaron Bono 2006-11-30 21:28:04 PostgreSQL and Performance of Functions