天天看點

post-gis安裝

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