Starting postgresql service: /usr/bin/postmaster does not find the database system. Expected to find it in the PGDATA directory "/var/lib/pgsql", but unable to open file with pathname "/var/lib/pgsql/base/template1/pg_class". No data directory -- can't proceed. postmaster [] --------------------------------------------- [root@xanax] (pts/2) # ls /var/lib/pgsql [root@xanax] (pts/2) #
You need to create a database before starting postmaster: su postgres /usr/bin/initdb --pgdata=/var/lib/pgsql --pglib=/usr/lib/pgsql