Where to start First steps track · 15 stages
Linux Labs

Web stack

Final test: Web stack

Question 13 of 18
Leave the quiz

Read the output

The service is running and the port is listening, yet the application cannot log in. At which check did the connection stop?

$ ss -tln 'sport = :5432'
LISTEN 0      200        127.0.0.1:5432      0.0.0.0:*
$ psql -h 127.0.0.1 -U shop -d shop -c 'SELECT 1'
psql: error: connection to server at "127.0.0.1", port 5432 failed: FATAL:  no pg_hba.conf entry for host "127.0.0.1", user "shop", database "shop", no encryption
Back A–D or ↵ Sign in to answer
Loading…