暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
postgresql.conf.txt
217
74页
4次
2022-04-17
5墨值下载
[root@pg14 data]# cat postgresql.conf
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
# values can be found in the PostgreSQL documentation.
#
# The commented-out settings shown in this file represent the default values.
# Re-commenting a setting is NOT sufficient to revert it to the default value;
# you need to reload the server.
#
# This file is read on server startup and when the server receives a SIGHUP
# signal. If you edit the file on a running system, you have to SIGHUP the
# server for the changes to take effect, run "pg_ctl reload", or execute
# "SELECT pg_reload_conf()". Some parameters, which are marked below,
# require a server shutdown and restart to take effect.
#
# Any parameter can also be given as a command-line option to the server, e.g.,
# "postgres -c log_connections=on". Some parameters can be changed at run time
# with the "SET" SQL command.
#
# Memory units: B = bytes Time units: us = microseconds
# kB = kilobytes ms = milliseconds
# MB = megabytes s = seconds
# GB = gigabytes min = minutes
# TB = terabytes h = hours
# d = days
#------------------------------------------------------------------------------
# FILE LOCATIONS
#------------------------------------------------------------------------------
# 除了已经提到的 postgresql.conf 文件之外,PostgreSQL 还使用了另外两个手动编辑的配置文件,
它们控制客户端身份验证
# (它们的使用在第 21 章中讨论)。
# 默认情况下,所有三个配置文件都存储在数据库集群的数据目录中。
# 本节中描述的参数允许将配置文件放置在其他地方。
# (这样做可以简化管理。尤其是当配置文件分开保存时,通常更容易确保它们得到正确备份。)
# The default values of these variables are driven from the -D command-line
# option or PGDATA environment variable, represented here as ConfigDir.
#data_directory = 'ConfigDir' # use data in another directory
# (change requires restart)
# 指定用于数据存储的目录。
此参数只能在服务器启动时设置。
#hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file
# (change requires restart)
# 指定基于主机的身份验证
的配置文件(通常称为 pg_hba.conf)。
# 此参数只能在服务器启动
时设置。
#ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file
# (change requires restart)
# 指定用户名映射的配置文
件(通常称为 pg_ident.conf)。此参数只能在服务器启动时设置。另见第 21.2 节。
# If external_pid_file is not explicitly set, no extra PID file is written.
#external_pid_file = '' # write an extra PID file
# (change requires restart)
# 指定服务器应创建以供服
务器管理程序使用的附加进程 ID (PID) 文件的名称。此参数只能在服务器启动时设置。
# 在默认安装中,上述参数均未明确设置。相反,数据目录由 -D 命令行选项或 PGDATA 环境变量指定,配
置文件都在数据目录中。
# 如果您希望将配置文件保存在数据目录以外的其他位置,postgres -D 命令行选项或 PGDATA 环境变量
必须指向包含配置文件的目录,
# 并且 data_directory 参数必须在 postgresql.conf 中设置(或命令行)来显示数据目录的实际位
置。
# 请注意,data_directory 覆盖了数据目录位置的 -D PGDATA,但没有覆盖配置文件的位置。
# 如果您愿意,可以使用参数 config_filehba_file /ident_file 分别指定配置文件的名称和
位置。
#config_file (string) 指定主服务器配置文件(通常称为
postgresql.conf)。此参数只能在 postgres 命令行上设置。
# config_file 只能在 postgres 命令行中指定,但其他可以在主配置文件中设置。
# 如果所有三个参数加上 data_directory 都被显式设置,则不需要指定 -D PGDATA
# 设置任何这些参数时,将相对于启动 postgres 的目录解释相对路径。
#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------
# - Connection Settings -
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost'; use '*' for all
# (change requires restart)
# 指定服务器用于侦听来自
客户端应用程序的连接的 TCP/IP 地址。
# 该值采用逗号分隔的主机
名和/或数字 IP 地址列表的形式。
# 特殊条目 * 对应于所有可
用的 IP 接口。
# 条目 0.0.0.0 允许监听
所有 IPv4 地址, :: 允许监听所有 IPv6 地址。
# 如果列表为空,则服务器
根本不会侦听任何 IP 接口,在这种情况下,只能使用 Unix 域套接字连接到它。
# 默认值为 localhost
它只允许建立本地 TCP/IP “环回”连接。
# 虽然客户端身份验证(第
21 章)允许对谁可以访问服务器进行细粒度控制,但 listen_addresses 控制哪些接口接受连接尝试,
# 这有助于防止在不安全的
网络接口上重复的恶意连接请求。此参数只能在服务器启动时设置。
port = 1931 # (change requires restart)
# 服务器监听的 TCP 端口;
默认为 5432。请注意,服务器侦听的所有 IP 地址都使用相同的端口号。此参数只能在服务器启动时设置。
of 74
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜