好吧,我尝试了几个小时在 ubuntu 中安装和配置 postgres,但出现以下错误:
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 的命令:
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo -i -u postgres
psql (After this I got an error)
在安装 postgres 期间出现错误。请通过我提供建议或资源,我可以解决这个问题!