root@ggx:~# ps -A | grep postmaster
root@ggx:~# less /home/postgres/logfile
/home/postgres/logfile: No such file or directory
root@ggx:~#
it seems my postgres home is
/opt/pgsql
so i did
root@ggx:~#less /opt/pgsql
FATAL: could not open file "/usr/local/pgsql/data/PG_VERSION": Permission denied
then i did this
root@ggx:~# cd /usr/local/pgsql/data/
root@ggx:/usr/local/pgsql/data# chmod 777 PG_VERSION
root@ggx:/usr/local/pgsql/data# createdb mydb
createdb: could not connect to database template1: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
root@ggx:/usr/local/pgsql/data# less /opt/pgsql/logfile
FATAL: could not open file "/usr/local/pgsql/data/PG_VERSION": Permission denied
[1]+ Stopped less /opt/pgsql/logfile
root@ggx:/usr/local/pgsql/data#