Centos 7 安装PostGIS+ GeoDjango实现的WebGIS(一)Centos7安装PostgreSQL

写在安装前

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值