0 、首先确定一下安装版本,看一下插件与数据库互相支持情况
https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS
9628812-2ee3f7137d0dae68.png
image.png
图上显示我写该文章时,postgresql12已经测试版出来了,选择最新但稳定版就是postgresql11。
在服务器上,也可以查看不同版本postgresql对应能安装的postgis版本
yum list postgis*
9628812-c2f43ea164899297.png
image.png
我已经安装了postgresql11,可选的postgis版本上图已经列出
PostgreSQL11安装
postgis安装参考官网教程(postgresql9.5+postgis2_95)
http://www.postgresonline.com/article_pfriendly/362.html
1 开始安装postgis插件之前,因为插件中有依赖的内容,需要先安装。
yum -y install epel-release
epel存储地址 :https://dl.fedoraproject.org/pub/epel/
2 进行对应版本的postgis安装
yum install postgis25_11
yum install postgis25_11-client