I typed psql and I get this:
psql
psql: could not connect to server: No such file or directory Is the server running locally and accepting con
I was facing same problem and
sudo su - postgres initdb --locale en_US.UTF-8 -D /var/lib/postgres/data exit sudo systemctl start postgresql sudo systemctl status postgresql
This worked for me.