postgresql.conf和pg_hba.conf在Ubuntu服务器上的位置

从Ubuntu repos安装的运行Postgresql 8.4的 Linux服务器上的文件postgresql.conf和pg_hba.conf在哪里?
在Google上寻找“pg_hba.conf ubuntu”给你

https://help.ubuntu.com/community/PostgreSQL

显示文件的位置.

文档说明如下:

Client authentication is controlled by
a configuration file,which
Traditionally is named pg_hba.conf and
is stored in the database cluster’s
data directory. (HBA stands for
host-based authentication.) A default
pg_hba.conf file is installed when the
data directory is initialized by
initdb. It is possible to place the
authentication configuration file
elsewhere,however; see the hba_file
configuration parameter.

请注意,它存储在数据库集群的数据目录中,并且可以通过配置参数将其放在其他位置.官方文档无法指向特定文件夹,因为实际位置取决于操作系统制造商和机器管理员如何设置Postgresql.记住Postgresql支持许多不同的操作系统(和Linux发行版).

另外,两个提示

> locate将帮助您查找您知道名称但不知道位置的文件>基于Debian的发行版位于/usr/share / doc文档中,认情况下它们如何设置不同的包,我相信你会在/usr/share/doc/postgresql-8.4(或者只是postgresql)下找到相关的信息.配置文件.在他们修改了一些标准行为的情况下阅读非常有用.

相关文章

项目需要,有个数据需要导入,拿到手一开始以为是mysql,结果...
本文小编为大家详细介绍“怎么查看PostgreSQL数据库中所有表...
错误现象问题原因这是在远程连接时pg_hba.conf文件没有配置正...
因本地资源有限,在公共测试环境搭建了PGsql环境,从数据库本...
wamp 环境 这个提示就是说你的版本低于10了。 先打印ph...
psycopg2.OperationalError: SSL SYSCALL error: EOF detect...