安装环境
- 操作系统:Ubuntu 16.04,操作用户为root
- 安装方式:源码安装
准备
- 下载PostgreSQL源码postgresql-11.5.tar.gz 链接
- 下载GEOS源码geos-3.7.2.tar.gz 链接
- 下载PROJ源码proj-6.1.1.tar.gz 链接
- 下载PostGIS源码postgis-2.5.3.tar.gz 链接
开始安装
安装PostgreSQL 官方文档
# 安装相关依赖
apt install gcc g++ make bison flex libreadline6-dev zlib1g-dev libsystemd-dev -y
# 当前目录是/root
# 解压源码压缩包
tar zxvf postgresql-11.5.tar.gz
# 修改权限
chown -R root:root postgresql-11.5
chmod 755 `find postgresql-11.5 -type d<