From: Manish Pillai <manishg_pillai@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Postgres 8.1.4 is not starting in RHEL 4
Date: Thu, 30 Nov 2006 22:33:57 -0800 (PST)
Message-ID: <414317.51890.qm@web52308.mail.yahoo.com> (raw)
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@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@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@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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: manishg_pillai@yahoo.com
Subject: Re: Postgres 8.1.4 is not starting in RHEL 4
In-Reply-To: <414317.51890.qm@web52308.mail.yahoo.com>
References: <414317.51890.qm@web52308.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox