URCloud

/ 0评 / 0/ 最后更新:2020-09-18
postgresql开启远程登录

步骤一修改pg_hba.conf文件

# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
host    all             all             0.0.0.0/0               md5

步骤二修改postgresql.conf文件

# - Connection Settings -
listen_addresses = '*'          # what IP address(es) to listen on;

步骤三重启

sudo systemctl restart postgresql
0

Leave a Reply

Your email address will not be published.