Postgres-XL9.5r1.6 搭建
Posted 恩蒙
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Postgres-XL9.5r1.6 搭建相关的知识,希望对你有一定的参考价值。
Postgres-XL9.5r1.6
安装部署
1,环境准备
关闭防护墙
关闭selinux
下载依赖 yum install -y flex bison readline-devel zlib-devel openjade docbook-style-dsssl
下载源码
https://www.postgres-xl.org/downloads/postgres-xl-9.5r1.6.tar.bz2
git clone git://git.postgresql.org/git/postgres-xl.git
2,解压并安装
tar xvf postgres-xl-9.5r1.6.tar.bz2
make
make install
3,创建postgres用户
adduser postgres
passwd postgres
4,免密码登录
ssh-copy-id [email protected]
5,配置环境变量并生效
vi .bashrc
export PGHOME=/usr/local/pgsql
export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH
export PATH=$PGHOME/bin:$PATH
export dataDirRoot=$HOME/DATA/pgxl/nodes
source .bashrc
6,配置集群
gis | uuid-ossp
yum install -y geos-devel.x86_64 geos.x86_64 libxml2-devel.x86_64 proj.x86_64 proj-devel.x86_64 gdal-devel.x86_64 gdal.x86_64 SFCGAL-devel.x86_64 SFCGAL.x86_6
export PATH=$PATH:/usr/local/pgsql/bin/
wget http://postgis.net/stuff/postgis-2.2.4.tar.gz
make
make install
SELECT name, default_version,installed_version
FROM pg_available_extensions WHERE name LIKE ‘postgis%‘ or name LIKE ‘address%‘;
CREATE EXTENSION postgis;
CREATE EXTENSION postgis_topology;
ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
make
make install
以上是关于Postgres-XL9.5r1.6 搭建的主要内容,如果未能解决你的问题,请参考以下文章