當前位置:
首頁 > 最新 > GIS on CentOS 7之PostgreSQL&PostGIS

GIS on CentOS 7之PostgreSQL&PostGIS

PostgreSQL & PostGIS


安裝postgresql

配置好yum源(https://mirrors.tuna.tsinghua.edu.cn/help/epel/)之後,使用可發現 postgresql的版本為9.2.23,若想安裝最新版本,可參考下面操作

https://www.postgresql.org/download/linux/redhat/

http://docs.nextgis.com/docs_ngweb/source/install-centos7.html

http://www.postgresonline.com/journal/archives/362-An-almost-idiots-guide-to-install-PostgreSQL-9.5,-PostGIS-2.2-and-pgRouting-2.1.0-with-Yum.html

將ident 修改為 md5

PostgreSQL ident和peer基於操作系統用戶的認證(https://yq.aliyun.com/articles/55898)

如果是 peer,可能會出現 對等認證失敗 的錯誤


https://postgis.net/install/

The postgis2_95-client contains the PostGIS commandline tools shp2gpsql, pgsql2shp, raster2pgsql that are useful for loading or exporting spatial data.

或者直接在shell中執行

使用template方式直接創建postgis資料庫,並指定所有者

啟用 PostGIS 功能的相關SQL

DO NOT INSTALL it in the database called .

參考 CentOS 7 源碼安裝PostGIS(https://my.oschina.net/freegis/blog/781657)

喜歡這篇文章嗎?立刻分享出去讓更多人知道吧!

本站內容充實豐富,博大精深,小編精選每日熱門資訊,隨時更新,點擊「搶先收到最新資訊」瀏覽吧!


請您繼續閱讀更多來自 WeGIS 的精彩文章:

TAG:WeGIS |