How can I tell if Postgres is running on 5432?

Đức Lưu

New member
How can I tell if Postgres is running on 5432?
Answer
Here is a list of commands to check if it’s running.
  1. Check if PostgreSQL is listening on port 5432: [11:20]
    [email protected]
    :~# ss -tulpn | grep 5432 tcp LISTEN 0 128 :::5432 :::* users:((“docker-proxy”,pid=26410,fd=4))
  2. Check systemd status. …
  3. Check if connection to PostgreSQL database is working.
 

Tìm kiếm

Back
Top