ho installato postgresql in conformità con le istruzioni fornite in: http://xadmin.info/?p=284Problemi durante la connessione psql
# pg_ctl -D /var/lib/pgsql/data -l pglog.log start
server starting
[email protected]:~> psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on
Unix domain socket "/tmp/.s.PGSQL.5432"?
Non ricevo sul motivo per cui mi appare questo errore quando ha avviato il server ... qualcuno può per favore per favore Aiuto.
Il mio file pglog.log mostra il seguente output:
2013-02-06 19:43:39 GMT FATAL: lock file "postmaster.pid" already exists
2013-02-06 19:43:39 GMT HINT: Is another postmaster (PID 23971) running in data directory "/var/lib/pgsql/data"?
2013-02-06 19:44:02 GMT FATAL: lock file "postmaster.pid" already exists
2013-02-06 19:44:02 GMT HINT: Is another postmaster (PID 23971) running in data directory "/var/lib/pgsql/data"?
2013-04-24 12:43:29 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:43:29 GMT DETAIL: Permissions should be u=rwx (0700).
2013-04-24 12:44:07 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:44:07 GMT DETAIL: Permissions should be u=rwx (0700).
2013-04-24 12:57:02 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:57:02 GMT DETAIL: Permissions should be u=rwx (0700).
2013-04-24 12:57:40 GMT FATAL: data directory "/var/lib/pgsql/data" has group or world access
2013-04-24 12:57:40 GMT DETAIL: Permissions should be u=rwx (0700).
ps -ef | postgres grep
root 21659 21591 0 19:14 pts/0 00:00:00 grep --color=auto postgres
Ho inviato il contenuto del mio file pglog.log. Spero che questo mi aiuti ad aiutarmi ulteriormente – user1778824
È elencato un numero di errori irreversibili per quanto riguarda le autorizzazioni, quindi vorrei verificarlo prima e anche assicurarmi che non sia già in esecuzione un processo Postgres separato che anche i registri notano. –
come faccio a controllare che venga arrestato il processo postgres separato – user1778824