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