加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-13 16:25:09 所属栏目:百科 来源:网络整理
导读:从Ubuntu repos安装的运行PostgreSQL 8.4的 Linux服务器上的文件postgresql.conf和pg_hba.conf在哪里? 在Google上寻找“pg_hba.conf ubuntu”给你 https://help.ubuntu.com/community/PostgreSQL 它显示了文件的位置. 文档说明如下: Client authentication
从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)下找到相关的信息.配置文件.在他们修改了一些标准行为的情况下阅读非常有用.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读