欧美free性护士vide0shd,老熟女,一区二区三区,久久久久夜夜夜精品国产,久久久久久综合网天天,欧美成人护士h版

目錄

linux centos下安裝postgresql數(shù)據(jù)庫以及yum下載安裝postgis擴展

Centos7操作系統(tǒng)下的postgresql下載

https://www.postgresql.org/download/linux/redhat/
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo yum install -y postgresql13-server
sudo /usr/pgsql-13/bin/postgresql-13-setup initdb
sudo systemctl enable postgresql-13
sudo systemctl start postgresql-13

查看當前系統(tǒng)哪些進程正在監(jiān)聽TCP端口5432

netstat -tnlp | grep 5432

下載安裝postgis擴展

首先我們在yum源里面查看可用的postgisab

yum list | grep postgis*

紅色的部分是 postgis 的版本 (在寫這篇博客的時候postgis的最高版本為3.3),藍色的框 是postgresql的版本號,大家選擇自己對應(yīng)的版本安裝

例如我需要安裝 postgresql 版本為13的,postgis版本為 3.3的postgis擴展,

然后我們執(zhí)行

yum install postgis33_14.x86_64

就可以完成postgis的安裝!

安裝postgis擴展

進入postgresql執(zhí)行下面語句,安裝所有的postgis的驅(qū)動

set postgis.gdal_enabled_drivers ='ENABLE_ALL';
CREATE EXTENSION postgis;
-- Enable Topology
CREATE EXTENSION postgis_topology;
-- Enable PostGIS Advanced 3D-- and other geoprocessing algorithms
-- sfcgal not available with all distributions
CREATE EXTENSION postgis_sfcgal;
-- fuzzy matching needed for Tiger
CREATE EXTENSION fuzzystrmatch;
-- rule based standardizer
CREATE EXTENSION address_standardizer;
-- example rule data set
CREATE EXTENSION address_standardizer_data_us;
-- Enable US Tiger Geocoder
CREATE EXTENSION postgis_tiger_geocoder;
CREATE EXTENSION postgis_raster;

有些文章會漏了這兩個,加上就好了。

set postgis.gdal_enabled_drivers ='ENABLE_ALL';
CREATE EXTENSION postgis;

原文鏈接:https://www.kuazhi.com/post/584011.html


本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點和立場。

轉(zhuǎn)載請注明,如有侵權(quán),聯(lián)系刪除。

本文鏈接:http://gantiao.com.cn/post/17829811.html

發(fā)布評論

您暫未設(shè)置收款碼

請在主題配置——文章設(shè)置里上傳

掃描二維碼手機訪問

文章目錄