我正在尝试使用此处的说明设置 PostgreSQL 服务器。我通过以下方式安装了该软件包apt-get install postgresql,现在我正在执行以下步骤:
sudo -u postgres psql 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"?
Run Code Online (Sandbox Code Playgroud)
我猜服务器没有运行,但我不知道如何启动它。任何提示将不胜感激。
更新:service postgresql status即使在sudo service postgresql start.
更新 #2:运行ps auxw | grep post也没有任何结果,所以我猜服务器守护进程没有运行。
postgresql ×1