netstat -nlp|grep 5432
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 9644/postgres
tcp6 0 0 :::5432 :::* LISTEN 9644/postgres
unix 2 [ ACC ] STREAM LISTENING 5986805 9644/postgres /var/run/postgresql/.s.PGSQL.5432