From: Pepe TD Vo <pepevo@yahoo.com>
To: pgsql-admin@lists.postgresql.org, pgsql-admin@postgresql.org, <soumik.bhattacharjee@kpn.com>
Subject: Re: Cannot connect to postgresql on port 5432
Date: Mon, 23 Dec 2019 19:39:59 +0000 (UTC)
Message-ID: <1358309851.1890679.1577129999416@mail.yahoo.com> (raw)
In-Reply-To: <2A91BEF8171A5349931391E0C721CC537D772EF8@CPEMS-KPN501.KPNCNL.LOCAL>
References: <2A91BEF8171A5349931391E0C721CC537D772EF8@CPEMS-KPN501.KPNCNL.LOCAL>
change md5 to trust and try to connect again
Bach-Nga
No one in this world is pure and perfect. If you avoid people for their mistakes you will be alone. So judge less, love and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success
On Monday, December 23, 2019, 02:30:35 PM EST, <soumik.bhattacharjee@kpn.com> wrote:
<!--#yiv4373058981 _filtered {} _filtered {}#yiv4373058981 #yiv4373058981 p.yiv4373058981MsoNormal, #yiv4373058981 li.yiv4373058981MsoNormal, #yiv4373058981 div.yiv4373058981MsoNormal {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv4373058981 a:link, #yiv4373058981 span.yiv4373058981MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv4373058981 a:visited, #yiv4373058981 span.yiv4373058981MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv4373058981 span.yiv4373058981EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv4373058981 .yiv4373058981MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered {}#yiv4373058981 div.yiv4373058981WordSection1 {}-->
Hi Experts,
Post installation of PostgreSQL it is not listening on an IP, only on localhost.
Please suggest your inputs.
Used below command for installations –
# apt-get install postgresql-12
postgres=# select version();
version
------------------------------------------------------------------------------------------------------------------
PostgreSQL 12.1 (Debian 12.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
(1 row)
Entries in ::: /etc/postgresql/12/main/pg_hba.conf
# Database administrative login by Unix domain socket
local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 md5
host replication all ::1/128 md5
Not connected
postgres@srv:/opt$ netstat -nlp | grep 5432
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 25857/postgres
unix 2 [ ACC ] STREAM LISTENING 74234 25857/postgres /var/run/postgresql/.s.PGSQL.5432
postgres@srv:~$ telnet 10.133.214.32 5432
Trying 10.133.214.32...
telnet: Unable to connect to remote host: Connection refused
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: pepevo@yahoo.com, soumik.bhattacharjee@kpn.com
Subject: Re: Cannot connect to postgresql on port 5432
In-Reply-To: <1358309851.1890679.1577129999416@mail.yahoo.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