码迷,mamicode.com
首页 > 其他好文 > 详细

Postgres-XL9.5r1.6 搭建

时间:2017-10-12 17:54:15      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:安装   -o   lex   available   org   ftp   user   创建   lib   

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 postgres@10.1.88.47

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 搭建

标签:安装   -o   lex   available   org   ftp   user   创建   lib   

原文地址:http://www.cnblogs.com/zhangeamon/p/7657142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!