Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDUuU-00069i-CL for pgsql-admin@postgresql.org; Mon, 17 Sep 2012 06:34:22 +0000 Received: from mail-pz0-f46.google.com ([209.85.210.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TDUuS-0005DJ-BA for pgsql-admin@postgresql.org; Mon, 17 Sep 2012 06:34:22 +0000 Received: by dady13 with SMTP id y13so686369dad.19 for ; Sun, 16 Sep 2012 23:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=SykxLBrRdrTMpQXMRXdTxGWzT7sCQBvilcX0aZoLwjI=; b=DosAafUJi0P2JVj/JIzBYow0dbeZTzpSoizj3CvjcOGvemnDe4iOyFGYJNJmovJbcM eKfTd9jyrgr/v2cY05Rs4NTUjjqO89PVHcX6LWnU0/1MSedxCY/CUqvu/tzSTYvdPe/n 7PpSw1F82p0wpFLCcuNuKn4DWGncwgGj8tNt0kMzMUEMQmQ6Ih7DWyzfu7OfgbRy+HXo mx30KJBW2sLyplE/lj8Ld2SHN3M17ijhmnUUoM6hFLkmZyR6a/g8F7014TgXBWoLcYTy cwpgndWYpHev1PE58MH5JwI8pKyAYYvWXqfLB7ptARfGvkpY8eZW9gj46WRgYuBWYdqb doHA== Received: by 10.66.75.73 with SMTP id a9mr18442289paw.43.1347863658748; Sun, 16 Sep 2012 23:34:18 -0700 (PDT) Received: from [192.168.1.7] ([116.226.32.153]) by mx.google.com with ESMTPS id qa4sm6435073pbb.70.2012.09.16.23.34.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Sep 2012 23:34:17 -0700 (PDT) Message-ID: <5056C464.1060006@gmail.com> Date: Mon, 17 Sep 2012 14:34:12 +0800 From: Rural Hunter User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Problem after changing the port number of postgres References: <5056C277.2080503@orkash.com> <1347863385.16960.19.camel@lenovo01-laptop03.gunduz.org> In-Reply-To: <1347863385.16960.19.camel@lenovo01-laptop03.gunduz.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201209/95 X-Sequence-Number: 40036 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,