Pgadmin Unable to connect centos7 PostgreSQL problem

Source: Internet
Author: User
Tags postgresql

First view

1. Use Ps-ef|grep postgres to see if the process has started, as normal:

Postgres 1445 1 0 07:54? 00:00:00/usr/bin/postgres-d/var/lib/pgsql/data-p 5432
Postgres 1853 1445 0 07:54? 00:00:00 Postgres:logger Process
Postgres 2075 1445 0 07:54? 00:00:00 Postgres:checkpointer Process
Postgres 2076 1445 0 07:54? 00:00:00 Postgres:writer Process
Postgres 2077 1445 0 07:54? 00:00:00 Postgres:wal Writer Process
Postgres 2078 1445 0 07:54? 00:00:00 postgres:autovacuum Launcher Process
Postgres 2079 1445 0 07:54? 00:00:00 postgres:stats Collector Process
Root 7135 3247 0 09:08 pts/0 00:00:00 grep--color=auto postgres

2. Use Netstat-tpnl|grep 5432 to see if the port is being monitored, as normal:

TCP 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 1445/postgres
TCP6 0 0::: 5432:::* LISTEN 1445/postgres

3. Use the Iptables-l-n|grep 5432 to see if the port is allowed, as normal:

ACCEPT TCP--0.0.0.0/0 0.0.0.0/0 state NEW TCP dpt:5432

You can use Telnet host_ip 5432 to test if you can connect.

As long as the 3 steps are normal pqadmin can be connected.

Pgadmin Unable to connect centos7 PostgreSQL problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.