CentOS7部署geoserver和postgis
CentOS7部署geoserver和postgis
環境:
centos 7.6
java jdk 1.8
geoserver 2.17.1
docker 19.03
postgresql 9.6+postgis2.4
一、部署geoserver
1、安裝java jdk
上傳jdk,用rpm安裝
rpm -ivh jdk-8u221-linux-x64.rpm
2、安裝geoserver
下載安裝包 http://geoserver.org/release/stable/ 上傳至centos
解壓縮
yum install unzip
unzip geoserver-2.17.1-bin.zip -d /usr/geoserver
進入資料夾,後臺啟動
cd /usr/geoserver/bin/
nohup startup.sh &
二、部署postgis
考慮到在centos上安裝postgresql和postgis步驟較為複雜,所以用docker拉取配置好的公共映象,方便快速部署
1、安裝docker
設定倉庫
yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
選擇阿里源
yum-config-manager \
--add-repo \
http:**//**mirrors.aliyun.com**/**docker-ce**/**linux**/**centos**/**docker-ce.repo
安裝docker ce
yum install docker-ce docker-ce-cli containerd.io
啟動docker
systemctl start docker
2、部署postgresql + postgis
docker拉取映象,本文選擇9.6和2.4的版本搭配,其他版本見 https://hub.docker.com/r/kartoza/postgis
docker pull kartoza/postgis:9.6-2.4
建立volume,將容器資料儲存在宿主機上,預設在/var/lib/docker/volumes裡
docker volume create pg_dv
run映象
docker run \
--name postgis \
-v pg_dv:/var/lib/postgresql \
-e DEFAULT_ENCODING="UTF8" \
-e --auth="md5" \
-e ALLOW_IP_RANGE=0.0.0.0/0 -e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=1234 \
-p 5432:5432 \
-d kartoza/postgis:9.6-2.4
參考
1、https://hub.docker.com/r/kartoza/postgis
2、https://www.runoob.com/docker/centos-docker-install.html
3、http://www.gisdeveloper.co.kr/?p=6100
相關文章
- geoserver PostGIS的安裝和使用Server
- 使用GeoServer釋出PostGIS表資料Server
- GeoServer二:釋出服務(postgis資料庫)Server資料庫
- geoserver+postgis開發環境搭建,再加cesuimServer開發環境UI
- GeoServer學習筆記-2、基本使用(釋出PostGIS表)Server筆記
- Geoserver釋出PostGIS地圖資料:問題記錄Server地圖
- GeoServer釋出PostGIS資料庫中的柵格資料Server資料庫
- 搭建簡易Web GIS網站:使用GeoServer+PostgreSQL+PostGIS+OpenLayers3Web網站ServerSQLS3
- 【環境配置】Geoserver如何訪問shapefile或PostGIS資料庫Server資料庫
- GeoServer + PostGIS 進行圖層檔案資料匯入併發布Server
- PostgreSQL11.2+PostGIS2.5部署SQL
- postgresql和postgis外掛安裝SQL
- CentOS7上部署httpsCentOSHTTP
- GeoServer介紹Server
- geoserver的探索Server
- CentOS7 docker安裝部署教程CentOSDocker
- Postgresql + postgis基本操作SQL
- GeoServer之SqlViewServerSQLView
- Centos 7 上安裝Postgresql10.5和PostGISCentOSSQL
- CentOS7 輕鬆部署 Laravel 應用CentOSLaravel
- asp.net core 2.1 部署 centos7ASP.NETCentOS
- Centos7系統部署django專案CentOSDjango
- Centos7安裝安裝部署dockerCentOSDocker
- Centos7部署Redis叢集CentOSRedis
- CentOS7 Hbase-1.3.1 分散式部署CentOS分散式
- CentOS7 .NetCore+Nginx 部署CentOSNetCoreNginx
- postgis安裝手記
- Docker-postgis安裝Docker
- GeoServer 踩過的坑Server
- Centos7部署nmon監控工具CentOS
- centos7後臺服務部署jar包CentOSJAR
- CentOS7下Elasticsearch叢集部署記錄CentOSElasticsearch
- CentOS7 Tomcat JSP 安裝部署CentOSTomcatJS
- CentOS7 Hadoop-2.7.4 分散式部署CentOSHadoop分散式
- CentOS7 Apache+Mono Web站點部署CentOSApacheMonoWeb
- gRPC學習之一:在CentOS7部署和設定GORPCCentOSGo
- PostGIS管網連通性分析
- PostgreSQL+PostGIS時態分析SQL