postgres-x2 是postgresql資料庫的集群軟體目前已經遷移到github
經過反覆研究 postgres-x2 的文件,
postgres-x2 是基於postgresql的源**進行的修改,可以理解為postgresql 的修改版。
從github 獲取源** (獲取1.2版本)
wget
安裝編譯需要的包
yum -y install gcc* libtool* libxml2-devel readline-devel flex bison crypto* perl-extutils
-embed zlib-devel pam-devel libxslt-devel openldap-devel python-devel openssl-devel cmake
安裝源**
配置安裝
./configure --prefix=/home/pgxc/stable
make install
目前測試了centos 7.1 centos 6.7
postgres-x2 配置
集群中的所有的節點均需要編譯 postgres-x2
推薦使用6臺伺服器構建集群。
配置檔案
nodename = 'gtmnode'
# 設定 gtm 節點的名稱
listen_addresses = '*'
# 監聽位址 設定為* 為監聽本機所有位址
# (changes requires restart)
port = 6666
# 設定 gtm 的埠
# (changes requires restart)
startup = act # start mode. act/standby.
gtm 即全域性事務管理器
全域性事務管理器的備份
libxml2編譯安裝
僅作記錄學習。拷貝到ubuntu 12.04。首先進行解壓 tar zxvf libxml2 2.6.28.tar.gz 解壓到當前目錄下 cd libxml2 2.6.28 進行簡單的配置,具體的功能可以根據需求進行詳細了解 configure prefix usr local pc libxml...
linux編譯安裝aria2
root 192 168 7 77 wget 192 168 7 77 yum y install bzip2 root 192 168 7 77 bzip2 d aria2 1.33.1.tar bz2 root 192 168 7 77 tar xf aria2 1.33.1.tar root ...
編譯安裝LAMP之安裝apache2
這裡我選擇版本號為2.4.16的apache 請確保系統已經安裝了編譯工具 configure enable soerror 這裡你可能會遇到這樣的錯誤 checking for chosen layout.apache checking for working mkdir p.yes checki...