#重新配置ip地址
$gs_om -t stop
[omm@opengauss db1]$ gs_om -t status --detail
node node_ip instance state
--------------------------------------------------------------------------------------
1 opengauss 10.0.2.15 6001 /opt/huawei/install/data/db1 P Primary Normal
$ cd /opt/huawei/install/data/db1
$ vim postgresql.conf
# 修改
# - Connection Settings -
listen_addresses = '10.60.67.87' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'
# (change requires restart)
local_bind_address = '10.60.67.87'
port = 26000 # (change requires restart)
$ vim pg_hba.conf
# 修改
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 10.60.67.87/32 trust
# IPv6 local connections:
host all all ::1/128 trust
$gs_om -t start