其他分享
首页 > 其他分享> > pg11 barman

pg11 barman

作者:互联网

pg主机:

开用户

createuser -s -P barman

密码barman1234

创建replication用户

 createuser -P --replication streaming_barman

密码streaming_barman1234

 

ssh-keygen

 

 

 

barman主机:

密码写入~barman/.pgpass

pg:5432:postgres:barman:barman1234
192.168.219.30:5432:postgres:barman:barman1234
pg:5432:postgres:streaming_barman:streaming_barman1234
192.168.219.30:5432:postgres:streaming_barman:streaming_barman1234

使用barman的linux系统用户

psql -c 'select version()' -U barman -h 192.168.219.30 postgres

sudo -u barman psql -U streaming_barman -h pg \
 -c "IDENTIFY_SYSTEM" \
 replication=1

 

ssh-keygen

 

标签:5432,postgres,pg11,barman1234,streaming,barman,pg
来源: https://www.cnblogs.com/alexhjl/p/12787206.html