我在ubuntu 16.04 LTS上安装了postgresql 10。我已经更改了如下配置。
在pg_hba.conf
local all postgres peer
local all all peer
host all all 0.0.0.0/0 md5
host all all ::1/128 md5
在postgresql.conf中
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for all
# (change requires restart)
port = 5432 # (change requires restart)
max_connections = 500 # (change requires restart)
#superuser_reserved_connections = 3 # (change requires restart)
unix_socket_directories = '/var/run/postgresql' # comma-separated list of directories
但是Port(5432)没有在服务器上侦听。
netstat -pant | grep 5432
什么也没回来...! 请帮助.......!