[pgsql-jp: 27629] Re: connect() failed: Connection refused

谷内 紀久 yanaitti @ plum.freemail.ne.jp
2002年 10月 15日 (火) 16:27:52 JST


やないっちです。

環境を教えてください。
バージョンアップなのか、初期インストール版なのか?
以前は動いていて、再起動してからこうなったのか?
等。お願いします。

----- Original Message -----
From: "みつき" <mitsuki @ zc5.so-net.ne.jp>
To: <pgsql-jp @ ml.postgresql.jp>
Sent: Tuesday, October 15, 2002 4:15 PM
Subject: [pgsql-jp: 27628] Re: connect() failed: Connection refused


>
> >initdbって行いましたか?
> >または、ディレクトリ違いとか?
>
> postmaster -D /usr/local/pgsql/data
> とすると既にディレクトリの中にファイルがあるよ、というメッセージが出まし
た。
> ですのでもうinitdbは行ってあると思います。(変なファイルが入ってるだけで
しょ
> うか)
>
> 中を見てみると
> PG_VERSION  base  global  pg_hba.conf  pg_ident.conf  pg_xlog
> postgresql.conf  postmaster.opts  postmaster.pid
> というファイルがありました。
>
> > >
> > > Postgresqlにて以下のエラーのため、データベースの作成ができません。
> > >
> > >
> > > $ createdb
> > > psql: connectDBStart() -- connect() failed: Connection refused
> > >          Is the postmaster running locally
> > >          and accepting connections on Unix socket
'/tmp/.s.PGSQL.5432'?
> > > createdb: database creation failed
> > >
> > > ネットで調べたところ、postmasterが起動していない可能性があるとのことで
> > > 下記のコマンドで起動状態を調べました。
> > >
> > > $ pg_ctl status
> > > pg_ctl: postmaster is running (pid: 460)
> > > Command line was:
> > > /usr/local/pgsql/bin/postmaster '-S' '-i'
> > >
> > > 起動はされているのに、なぜ上記のようなエラーが出るのでしょう?
> > >
> > > みつき@so-net
> > > (Postgres7.1.3)
> > >
> > >
>
>




pgsql-jp メーリングリストの案内