小编yed*_*ukn的帖子

无法在我的系统上运行 postgres。它显示 `postgres 不在 sudoers 文件中。此事件将被报告。

我正在尝试在我的 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.

从截图中会更清楚。

如何继续?请帮忙...

截屏:

参考

postgresql sudo su

10
推荐指数
1
解决办法
3万
查看次数

标签 统计

postgresql ×1

su ×1

sudo ×1