一、安装环境
1、virtualbox 5.1.28
2、CentOS release 6.5 (Final)
3、Postgresql 9.6.0
二、安装步骤
1、 安装好Postgresql 9.6.0 并搭建同步流复制,一主两备方案。主备地址,端口分别如下:
库类型 | 地址 | 端口 | 数据库名 |
Mater | 192.168.1.135 | 1960 | postgres |
Standby1 | 192.168.1.135 | 1961 | postgres |
Standby2 | 192.168.1.135 | 1962 | postgres |
2、安装libevent
(1)下载libevent
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
(2)安装libevent
tar -zxvf libevent-2.0.20-stable.tar.gzcd libevent-2.0.20-stable./configure --prefix=/home/pg96/libevent-2.0.20make make install