yum -y install postgresql postgresql-libs postgresql-server
rpm -Uvh postgresql-*.rpm
service postgresql start
chkconfig postgresql on
# "local" is for Unix domain socket connections only
#local all all ident sameuser
local all all trust
# IPv4 local connections:
#host all all 127.0.0.1/32 ident sameuser
host all all 127.0.0.1/32 md5
su - postgres
pg_ctl reload
listen_addresses = '*'
tcpip_socket = true
host all all 192.168.1.0/24 md5
su - postgres
pg_ctl reload