我正在尝试安装和创建PostgreSQL主从复制。
配置postgresql.conf
和pg_hba.conf
后出现问题;我无法使用systemctl restart postgresql-11.service
重新启动Postgres。它抱怨
AUTHENTICATING for org.freedesktop.systemd1.manage-units --Authentication is required to manage system services or units
我也无法以pg_ctl
启动Postgres,它抱怨
unrecognized configuration parameter checkpoint_segments in file postgresql.conf line 215
在checkpoint_segments=8
中设置postgresql.conf
是否错误?
如何重新启动Postgres?
我的postgresql.conf
:
wal_level = hot_standby
max_wal_senders = 3
checkpoint_segments = 8
wal_keep_segments = 8
hot_standby = on
请您检查conf文件中的max_wal_size = 1 G或max_wal_size = 1 GB。如果是1G,将无法启动该服务。它应该是GB
披露:我为EnterpriseDB (EDB)工作”>