Postgres复制在配置后没有开始

问题描述 投票:0回答:1

我正在尝试安装和创建PostgreSQL主从复制。

配置postgresql.confpg_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
postgresql database-replication
1个回答
0
投票

请您检查conf文件中的max_wal_size = 1 G或max_wal_size = 1 GB。如果是1G,将无法启动该服务。它应该是GB

披露:我为EnterpriseDB (EDB)工作”>

© www.soinside.com 2019 - 2024. All rights reserved.