I cannot connect to postrges when doing the relational db course

psql: error: connection to server at “127.0.0.1”, port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?