需要在網(wǎng)站去看個版本數(shù)據(jù)庫對應(yīng)的具體版本

PostGIS Support Matrix
https://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS
安裝postgis
1.查看apt-get庫中的軟件版本支持
sudo apt-cache search postgis

image.png
2.安裝
sudo apt-get install postgis包名(如:postgresql-9.3-postgis-2.1)

image.png

image.png