How to Set Up Streaming Replication in PostgreSQL v12 Prerequisite: Make the file install.sh executable by running the folowing command: sudo chmod +x install.sh Setting up: Run the following command: sudo ./install.sh Delete everything and start all over: sudo ./reset.sh