1. go tohttps://www.postgresql.org/download/linux/redhat/
2. select version to be installed.
3.Install the repository RPM
4.Install the client packages
5.Optionally install the server packages
6.Optionally initialize the database and enable automatic start
7.@H_502_13@service postgresql-version initdb
@H_502_13@8.@H_502_13@chkconfig postgresql-version on
9.change password
10. configure postgresql
11. open port 5432