繁体   English   中英

在清理安装后,PostgreSQL“无法访问服务器配置文件(...)没有这样的文件或目录”

[英]PostgreSQL “cannot access the server configuration file (…) No such file or directory” after clean install

我刚刚根据官方文档安装了postgresql:但由于某种原因它不起作用。 它确实安装使用sudo apt-get postgres ...等。但服务器的启动似乎不起作用。

我尝试根据他们的文档启动服务器,但先生。 输入此命令时,计算机会将以下错误抛到脑后:

命令:

user@user-noobcomputer:/usr/lib/postgresql/9.4$ bin/postgres -D /usr/local/pgsql/data/

错误:

postgres cannot access the server configuration file "/usr/local/pgsql/data/postgresql.conf": No such file or directory" 

我不知道为什么这个文件不存在。 任何人都可以帮我找出如何通过这个错误信息,让我的postgres服务器启动并运行?

首先确保未安装该文件。 当超级用户更新mlocate数据库,然后为该文件运行mlocate查询。

$updatedb
$locate postgresql.conf

这将返回系统中具有该名称的任何文件。 如果文件位于错误的文件夹中,则它将显示在该查询中。

如果没有,可以尝试去PostgreSQL文档,他们有一个基本的例子来说明这个文件的外观。 尝试使用该设置制作文件的副本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM