No connection to db issue

Once it is actually running ( sudo service postgresql start ) you’ll need to ensure you connect to the right port.

So I ran sudo service postgrresql start and it says Starting PostgreSQL database server and doesn’t say anything else.

I notice in this screenshot you are trying to connect to the socket corresponding to port 5432 whereas in this one
psqlnotconnect
It’s port 5433. Which seems to be the cluster you have set up:

I tried going into pg_hba.conf file and tried to set it to 5432 but it crashes my psql entirely. Is there a workaround I can do to make it 5432?