PostgreSQL的扩展PostGIS是最著名的开源GIS数据库。
安装PostgreSQL是第一步。html
PostgreSQL官网–>Download–>Windows 64位,如图所示:
(1)官网:
https://www.postgresql.org/ linux
(2)Download:
https://www.postgresql.org/download/ sql
选择Windows下载docker
有2中安装方法,第一种适合新手windows下exe安装.点击Download the installer , 可是有时候报错很恶心.能够参考:https://www.runoob.com/postgresql/windows-install-postgresql.html。数据库
第二种方法: 点击zip archive,安装教程能够参考:http://www.javashuo.com/article/p-tmufzlsm-ge.htmlwindows
我用docker安装PostgreSQL主要是为了验证,docker的备份和还原。其实能够直接安装PostgreSQL的,具体能够见连接:https://www.runoob.com/postgresql/linux-install-postgresql.html官方的文档给的很全。post
安装PostgreSQL docker镜像。镜像地址以及相关的配置:https://hub.docker.com/_/postgresspa
语句:postgresql
docker pull postgres:12.1 --安装 docker run --name postgres -e POSTGRES_PASSWORD=123456 -p 5432:5432 -d postgres:12.1 启动用户名为postgre,密码为123456,端口映射为5432 的postgres:12.1 的docker实例
docker 的备份和还原与迁移详解:http://www.javashuo.com/article/p-bsbrfceb-ht.htmlcode