Toggle navigation
类型: integer
默认: 5432
最低限度: 1
最大: 65535
上下文: postmaster
重新开始: true

服务器监听的 TCP 端口;默认是 5432 。请注意服务器会同一个端口号监听所有的 IP 地址。这个参数只能在服务器启动时设置。

建议 [EN]

Alternate ports are primarily useful for running several versions, or instances, of PostgreSQL on one machine. However, if you're using an alternate port to support several versions, it's often better to compile in the port number.