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.
Thanks, adrian, but I have check the pgstartup.log, I got the following messages: ..... creating information schema ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok
Success. You can now start the database server using:
/usr/bin/postgres -D /var/lib/pgsql/data or /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start
runuser: cannot set groups: Operation not permitted
Seems the database cluster was initialized. Sort of concerned by the runuser error. What user did you run the initdb as?
I tried this:
-bash-4.1$ /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start server starting