Quote:
Is the server running on host localhost and accepting
TCP/IP connections on port 5432?
|
is it running on port 5432?
the output of:
"netstat -pant | grep post"
Should have in it:
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 1103/postmaster
If it doesnt you need to make sure that pg_ctl is starting postmaster with the "-i" flag.
here is the line I use to start postgres exactly as it appears in my init script:
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -o "-i" -D $PGDATA -p /usr/bin/postmaster start> /dev/null 2>&1" < /dev/null
Also take a look at your pg_hba.conf file with an eye to security. As with any service that opens a port you need to take some precautions. Depending on how much use the server gets you might also need to increase the amount of shared memory allocated too.