Empowering you to understand your world

How To Find The Port PostgreSQL Is Listening On

To determine which port PostgreSQL is listening on, you can use the ‘SHOW port’ command as follows:

sudo su postgres -c "psql -c 'SHOW port;'"
Subscribe to our newsletter
Get notified when new content is published