Install Package
$ sudo yum install postgresql-develSetting PostgresSQL
Initilize Database
$ sudo /etc/init.d/postgresql initdbStart PostgresSQL
$ sudo /etc/init.d/postgresql startSetting Password for postgres user
$ sudo su postgres
$ psql
$ ALTER USER postgres with password 'pass';Logout from postgres user and login with deploy
$ sudo vi /var/lib/pgsql/9.3/data/pg_hba.confAt the bottom of the file change authentication method to md5
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5Then Restart PostgreSQL
$ sudo /etc/init.d/postgresql restart