Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHMPs-0005o0-Lz for pgsql-admin@arkaria.postgresql.org; Sun, 04 Jun 2017 03:41:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dHMPs-00006r-3w for pgsql-admin@arkaria.postgresql.org; Sun, 04 Jun 2017 03:41:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dHMO5-0005K0-Jm for pgsql-admin@postgresql.org; Sun, 04 Jun 2017 03:39:33 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHMO1-00018R-SV for pgsql-admin@postgresql.org; Sun, 04 Jun 2017 03:39:33 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 3920121C063A for ; Sun, 4 Jun 2017 06:39:28 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from [172.16.1.3] (unknown [89.208.195.42]) by mail.postgrespro.ru (Postfix) with ESMTPSA id F114321C034E for ; Sun, 4 Jun 2017 06:39:27 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1496547568; bh=y22bMZMgqXwUSvEiBQVg6YtdvFoo0EnL00STZuQhgmM=; h=Subject:To:References:From:Date:In-Reply-To; b=A3IOSEPQA6uapJ3oIntS0gNTKRHzoHHPud+y78Ply6o49DXZrQwPfI+cPgWFXr5D2 Hed7yCYUAcc+OCWaQ1fn4QkqZMAYCnVE5X+SjlP8nZgadEk6nSgn1xafRHz6g2DQc2 mmflgJz7TMXj7lpIJSbbYwO3p712d5Jt9Y/0Rz+w= Subject: Re: Re: listen_addresses = '*' postgresql 9.5 does not allow local connect To: pgsql-admin@postgresql.org References: <1496544711321-5964669.post@n3.nabble.com> <1496546846616-5964671.post@n3.nabble.com> From: =?UTF-8?B?0JzQuNGF0LDQuNC7INCo0YPRgNGD0YLQvtCy?= Message-ID: <25ae79cd-7824-648a-db89-216f6b1b6311@postgrespro.ru> Date: Sun, 4 Jun 2017 06:39:27 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1496546846616-5964671.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Please set listen_addresses parameter and show output of command netstat -ltxn|grep 5432 04.06.2017 06:27, kschindl пишет: > David G Johnston wrote >> On Saturday, June 3, 2017, kschindl < > >> chuck666xx@ > >> > wrote: >> >> Please show some psql commands and resultant error messages. >> >> David J. > > kschindl@BelgarathUbuntu:~$ sudo -u postgres psql > psql: could not connect to server: No such file or directory > Is the server running locally and accepting > connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? > > Pgadmin: > Server doesn't listen > The server doesn't accept connections: the connection library reports > could not connect to server: Connection refused Is the server running on > host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? > > as soon as i remove the listen_addresses it works and connects on port 5432 > > > > -- > View this message in context: http://www.postgresql-archive.org/listen-addresses-postgresql-9-5-does-not-allow-local-connect-tp5964669p5964671.html > Sent from the PostgreSQL - admin mailing list archive at Nabble.com. > > -- WBR, Michail Shurutov Postgres Professional: http://www.postgrespro.ru The Russian Postgres Company -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin