Невозможно подключиться к серверу pgadmin4 - PullRequest
0 голосов
/ 19 января 2020

При попытке добавить сервер (это моя первая установка)

Конфигурация:

postgres 12

centos 7

pgadmin 4

Я получаю

could not connect to server: Permission denied
Is the server running on host "localhost" (::1) and accepting    
TCP/IP connections on port 5432?
could not connect to server: Permission denied
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?

за

SHOW listen_addresses;
listen_addresses 
------------------
localhost

Я могу подключиться к сети с psql

psql -h localhost aps19
psql (12.1, server 9.2.24)
Type "help" for help.

aps19=> 

Я слушаю через порт 5432

Я могу устанавливать TCP-соединения с java с моего локального хоста postgres> psql psql (12.1, сервер 9.2.24). Для справки введите "help".

xxx=> show port   
xxx-> ;
port 
------
5432

за Как подключиться Postgres к локальному серверу с помощью pgAdmin в Ubuntu?

psql (12.1, сервер 9.2.24) Введите «help» для справки.

postgres=# 
postgres=# alter user postgres with password 'postgres';
ALTER ROLE
postgres=# 

также

netstat -a | grep 5432
unix  2      [ ACC ]     STREAM     LISTENING     30611    /tmp/.s.PGSQL.5432
unix  2      [ ACC ]     STREAM     LISTENING     30602    /var/run/postgresql/.s.PGSQL.5432
...