I cannot "service postgresql start" by root:
Startup Log: /usr/bin/postmaster: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Permission denied
I cannot "service postgresql start" by postgres:
Startup Log:runuser: cannot set groups: Operation not permitted
But I can start it by postgres user with command:
postmaster -D /usr/local/pgsql/data
Why?
When I installed, I used
initdb -D /usr/local/pgsql/data
not
service postgresql initdb
So I afterwards changed init.d/postgresql script with the new path. Is this causing problem?
/usr/local/pgsql/dataand all sub-directories?