# yum install postgresql postgresql-server
Start Postgresql
———————
# chkconfig postgresql on
# service postgresql start
Connect to Postgresql Server
———————
# su – postgres
Connect using psql command line tool:
$ psql -d template1 -U postgres
Open TCP port 5432(Postgresql uses port 5432)
———————
Finally make sure iptables allows remote access to Postgresql database server.
Open /etc/sysconfig/iptables file.
# vi /etc/sysconfig/iptables
Append following line before COMMIT line to open port 5432
———————
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 5432 -j ACCEPT
Save and close the file. Restart the firewall.
# service iptables restart






0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.