gpt4 book ai didi

postgresql 无法连接到服务器 - 没有这样的文件或目录

转载 作者:行者123 更新时间:2023-11-29 11:36:43 26 4
gpt4 key购买 nike

我在 Ubuntu 16.04 上安装了 postgresql,当我运行 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"?

我尝试重新启动并重新加载 postgres 服务,但每次都显示错误。

最佳答案

我在 Ubuntu 14.04 中遇到了同样的错误,它对我有用。尝试重启 Postgres 服务

$ sudo service postgresql restart

$ sudo /etc/init.d/postgresql restart

关于postgresql 无法连接到服务器 - 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44771668/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com