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"?
错误如上,有可能是psql 没有启动 ,使用命名启动
sudo systemctl start postgresql