>/etc/init.d/postgresql status
>とした場合どのようなものが出ますでしょうか?
>また
>psql -l
>とコマンドをたたいた時にでてくる内容を教えていただけますでしょうか。
/etc/init.d/postgresql status の結果は、
postmaster is stopped
でした。
psql -l の結果は、
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.PCSQL.5432"?
でした。
initdb: directory "/var/lib/pgsql/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/var/lib/pgsql/data" or run initdb
with an argument other than "/var/lib/pgsql/data".
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale C.
standard in must be a tty
という感じです。
This user must also own the server process.
このユーザーは、サーバープロセスも所有しなければなりません。