postgresql-10 install postgresql-10 nginx redis keepalived config postgresql-10 HA You can use shell file auto install and config . Keepalived config file need to mv your work path.