写在安装前
PostGIS安装运行需要PostgreSQL环境,安装如下:
PostgreSQL
PostGIS
官方资源
1.官网:https://www.postgresql.org
2.Red Hat家族Linux(包括CentOS/Fedora/Scientific/Oracle)下载页面:https://www.postgresql.org/download/linux/redhat
3.下载页面:https://www.postgresql.org/download/
选择版本
安装
1.安装存储库RPM:
yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2.安装客户端软件包:
yum install postgresql11
3.安装服务器包:
yum install postgresql11-server
4.初始化数据库并启用自动启动:
/ usr / pgsql-11 / bin / postgresql-11-setup initdb
systemctl enable postgresql-11
systemctl start postgresql-11
关闭防火墙
执行关闭命令: systemctl stop firewalld.service
再次执行查看防火墙命令:systemctl status firewalld.service
执行开机禁用防火墙自启命令 : systemctl disable firewalld.service