微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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)下找到相关的信息.配置文件.在他们修改了一些标准行为的情况下阅读非常有用.

原文地址:https://www.jb51.cc/postgresql/192512.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐