我明白了
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"?
尝试卸载并重新安装,但没有成功
答案1
尝试以下步骤
sudo chown -R postgres:postgres /var/lib/postgresql/9.(your_version_here)/
sudo chmod -R u=rwX,go= /var/lib/postgresql/9.(your_version_here)/
您需要(your_version_here)
用您的psql
版本(最有可能是 9.5)替换。