Skip to main content

PostgreSQL 配置

# 使用 socket 连接 - 如果配置了 pg_hba.conf local 则不需要密码
psql -h /var/run/postgresql -U postgres -d postgres

# root -> postgres
su -l postgres -s /bin/bash

# SIGHUP 重载配置
pg_ctl reload -D /var/lib/postgresql/data/pgdata
  • /var/run/postgresql/
    • .s.PGSQL.5432
SELECT pg_reload_conf();

SSL