Postgresql replication Debian
Two servers:
- postgresql1 192.168.100.15
- postgresql2 192.168.100.20
Stretch
# hostnamectl set-hostname postgresqlX # echo '192.168.100.15 postgresql1' >> /etc/hosts # echo '192.168.100.20 postgresql2' >> /etc/hosts # apt-get install postgresql # reboot