PG高可用工具之repmgr安装
安装repmgr
官方文档:https://repmgr.org/docs/current/index.html
所有历史版本:https://repmgr.org/downloads.html
GitHub:https://github.com/EnterpriseDB/repmgr
The most recent repmgr
version (5.2.1) supports all PostgreSQL versions from 9.5 to 13. PostgreSQL 9.4 is also supported, with some restrictions.
编译安装repmgr:
? 需要提前在pg13用户下安装好PG软件,配置好环境变量。
1 2 3 4 5 6 7 8 9 10 | su - pg13 wget https://repmgr.org/download/repmgr-5.2.1.tar.gz tar -zxvf repmgr-5.2.1.tar.gz cd repmgr-5.2.1 ./configure make -j 8 && make install -- 校验 repmgr --help |
? 需要在所有PG节点环境上安装该软件。
其使用可以参考:https://www.xmmup.com/?s=repmgr