我收到这个错误,,
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"?
有什么问题?我在 Ubuntu 17.04 x64 上使用 postgresql 9.6
最佳答案
postgres deamon 是否在运行,即输出是什么
pg_lsclusters -h
?如果它没有运行,你可以使用
/etc/init.d/postgresql start
开始吧。
关于当我尝试 psql 时出现 Postgresql 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45617727/