pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rural Hunter <ruralhunter@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Problem after changing the port number of postgres
Date: Mon, 17 Sep 2012 14:34:12 +0800
Message-ID: <5056C464.1060006@gmail.com> (raw)
In-Reply-To: <1347863385.16960.19.camel@lenovo01-laptop03.gunduz.org>
References: <5056C277.2080503@orkash.com>
	<1347863385.16960.19.camel@lenovo01-laptop03.gunduz.org>

or set the 'PGPORT' env variable.

于 2012/9/17 14:29, Devrim GÜNDÜZ 写道:
> Hi,
>
> On Mon, 2012-09-17 at 11:55 +0530, himanshu.joshi wrote:
>>
>>     I have changed the default port of postgres in file
>> "postgresql.conf"  from 5432 to another four digit port which was not
>> assigned to any one  else. After the change I restarted the postgres
>> as well as the system.  But after changing the port while connecting
>> to postgres I am getting  this error:
>>
>> root@s14-apps:/opt/PostgresPlus/8.4SS# bin/psql -Upostgres
>> 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"?
> You need to pass -p parameter to psql:
>
> $ bin/psql -p XXXX
>
> Regards,





view thread (3+ messages)

Message-ID: <5056C464.1060006@gmail.com>
Permalink:  ../5056C464.1060006@gmail.com/
Also on:    postgresql.org/message-id/5056C464.1060006@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: ruralhunter@gmail.com
  Subject: Re: Problem after changing the port number of postgres
  In-Reply-To: <5056C464.1060006@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox