Re: problem with 010.pgsql.sh start

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Sam Wun <samwun(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem with 010.pgsql.sh start
Date: 2001-06-20 21:04:07
Message-ID: Pine.BSF.4.21.0106201401540.99425-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Do you have the postmaster configured to listen on the port as opposed
to only the local socket? (Either the -i command line option or
an option in the postgres.conf should do it I believe)

On Sat, 16 Jun 2001, Sam Wun wrote:

> Hi,
>
> When I finished running ./010.pgsql.sh start, then tried to run my php
> script, it reports the following err msg:
>
> Warning: Unable to connect to PostgreSQL server: connectDBStart() --
> connect() failed: Connection refused Is the postmaster
> running (with -i) at 'fastline' and accepting
> connections on TCP/IP port 5432? in
> /usr/local/apache/phplib/db_pgsql.inc on line 40
>
> Database error: Link-ID == false, pconnect failed
> PostgreSQL Error: 0 ()
> Session halted.
>
> I found that port 5432 is not being listening.
>
> The following is the output of ps -axf | grep pg command:
>
> root(at)fastline /<2>etc/rc.d # ps -axf | grep pg
> 623 p2 I 0:00.03 /usr/local/bin/postmaster -D
> /usr/local/pgsql/data (postgres)
>
> My question is why port# 5432 is not running if the pgsql.sh start
> running successfuly? unless the pgsql.sh start command failed.
>
> Does anyone have any suggestion about this problem?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-06-20 21:16:59 Re: performance tuning or real bug ?
Previous Message Dave Cramer 2001-06-20 20:43:39 Re: The bytea datatype and JDBC