关于此任务
在部署集群之前,将 Postgres 配置为允许远程连接至关重要。如果您在安装集群之前未执行这些步骤,安装将失败。
步骤
- 打开 - /var/lib/pgsql/9.6/data/pg_hba.conf并更新为以下内容- # "local" is for Unix domain socket connections only
- local all all trust
- # IPv4 local connections:
- host all all 0.0.0.0/0 trust
- # IPv6 local connections:
- host all all ::/0 trust
 
- 打开 - /var/lib//pgsql/9.6/data/postgresql.conf并更新为以下内容:- listen_addresses = '*'
 
- 重新启动Postgres: - systemctl stop postgresql-9.6.service
- systemctl start postgresql-9.6.service
 
 我的书签
 我的书签
                                 添加书签
 添加书签 移除书签
 移除书签