When I am running this command below:
sudo -u postgres psq
I get this error message below:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
How can I start postgreSql and fix this error?
sudo systemctl start postgresql
andsudo -u postgres -i
? And whatsystemctl status postgresql
says?