Linux安装postgresql及基础操作:https://blog.csdn.net/ctwy291314/article/details/79900074
Postgis 安装参考文档:https://www.cnblogs.com/giser-s/p/11195697.html
--1.下载相关的linux rpm包
此处有深坑,想要安装好POSTGIS,必须先安装依赖关系的一个yum源:yum -y install epel-release,之后,才能正确把所有的POSTGIS依赖项下载下来
注意,此处必须在Centos虚拟机(minimal)上操作
yumdownloader --resolve --destdir /home/xxxx/lib postgresql_12
yumdownloader --resolve --destdir /home/xxxx/lib postgis_12
yumdownloader --resolve --destdir /home/xxxx/lib citus_12.x86_64
--2.将下载好的rpm包copy到内网服务器,并创建本地yum源
将所有lib打包copy到 /home/xxxxxxx/lib下
--生成yum源
createrepo lib
--配置yum源,同时,可以考虑将该目录下其他yum源文件设为bak
vi /etc/yum.repos.d/yum.