Here is link
https://en.wikibooks.org/wiki/PostgreSQL/Replication
this will guide you step by step.
let me know , if still any questions.
Quoting soumik.bhattacharjee@kpn.com:
> rom: Sanjib Mohanty <sanjib.technical@gmail.com>
> Sent: donderdag 6 februari 2020 14:00
> To: pgsql-admin@lists.postgresql.org
> Subject: pg_basebackup fails to connect from slave server
>
> Hi List,
>
> I am new to postgres/EnterpriseDB( 9.6). In fact, I was trying to
> configure one streaming replication from master to hot-standby
> server. I will appreciate if I need any help or document to
> configure and test in in RHEL server.
>
> I am using EenterpriseDB 9.6 version.
>
>
>
>
> * EDB has its own support and replication solutions.
> * You working with community version of PostgreSQL or EDB?
>
> Thanks in advance,
>
> Cheers,
> SM