On Wed, Dec 19, 2012 at 7:34 AM, Jason Ma
<rosegun38@gmail.com> wrote:
Hi,
The ps output is after the server start, I don't know why I can't see any process after start the server. And of course I use root to initial db, 'cause we have to run this command in CentOS which you need the privilege of root.
Well yes and no. If you run the service command you need to run as root. If you become the Postgres user you can run the initdb command directly as that user. The same goes for starting.
Did you try ps -ef | grep post ?
As a test try the following:
service postgresql stop
su - to the postgres user
do:
/usr/bin/pg_ctl -D /var/lib/pgsql/data start
Note no log file. This should output to the terminal.
Report what it says.
Also check the system log to see if there is something else preventing Postgres start. Hint, SELinux.
service postgresql start
Regards,
Jason
--
Adrian Klaver
adrian.klaver@gmail.com