我正在尝试在我的 WSL Ubuntu 上安装 postgres。安装完成,但是当我运行时,psql显示以下错误。
psql: error: could not connect to server: 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"?
当我运行sudo find /var/run/postgresql/.s.PGSQL.5432查找该文件时,它显示另一个类似这样的错误。
postgres is not in the sudoers file. This incident will be reported.
从截图中会更清楚。
如何继续?请帮忙...
截屏: