Unable to connect to server: Connection refused

surroundings
Platform: N / A
Version: 4.3.4,4.7.5,5.6.1
 
symptom

Tip connect to the database: Could not connect to server: Connection refused.

 
problem causes

If this occurs, there are about several possible reasons:

1. Server service is not running. So just start it.
2. The server is not configured to accept the address displayed on the TCP / IP requests.

3. firewall barrier.

4. Port error.

 
solution

1. Start the database

 

pg_ctl start

2. Check listen_addresses parameter settings.

Open postgresql.conf file search listen_addresses in the database file directory parameter value to its '*' after the restart the database.

3. Check the firewall configuration, turn off the firewall or open ports database.

More Solutions please visit the platform to support high-tech [Han] View https://support.highgo.com/#/index/docContent/ce3738ac04a172fb

 

 

systemctl stop firewalld
Published 399 original articles · won praise 108 · Views 650,000 +

Guess you like

Origin blog.csdn.net/pg_hgdb/article/details/104338150