GeoServer 下载安装部署(一)

最近由于项目需求,需要用到GeoServer进行地图发布。之前草草的学习过一段时间的GeoServer,但是都没有记录下来,到现在用的时候很多东西都需要重新查阅。所以现在将步骤记录下来,以供查阅。

GeoServer简介

GeoServer定义

是 OpenGIS Web 服务器规范的 J2EE 实现,利用 GeoServer 可以方便的发布地图数据,允许用户对特征数据进行更新、删除、插入操作,通过 GeoServer 可以比较容易的在用户之间迅速共享空间地理信息。

GeoServer 主要特性

兼容 WMS 和 WFS 特性;支持 PostgreSQL、 Shapefile 、 ArcSDE 、 Oracle 、 VPF 、 MySQL 、 MapInfo ;支持上百种投影;能够将网络地图输出为 jpeg 、 gif 、 png 、 SVG 、 KML 等格式;能够运行在任何基于 J2EE/Servlet 容器之上;嵌入 MapBuilder 支持 AJAX 的地图客户端OpenLayers;除此之外还包括许多其他的特性。

一、GeoServer下载

GeoServer的下载地址:http://geoserver.org/release/stable/

下载页面包括了GeoServer的安装文件,war包和文档及扩展。如下图:

我这里下载好了这些文件,百度网盘:http://pan.baidu.com/s/1mi6bqkw 分享密码:4d9w

二、GeoServer的安装

GeoServer的安装方式有多种,帮助文档中建议Windows和Mac OS采用独立安装方式。

这里需要注意的是:

Note

To run GeoServer as part of an existing servlet container such as Tomcat, please see the Web archive section.

Warning

GeoServer requires a Java 7 environment (JRE) to be installed on your system. This must be done prior to installation.

Windows 安装

The Windows installer provides an easy way to set up GeoServer on your system, as it requires no configuration files to be edited or command line settings.

  1. Make sure you have a Java Runtime Environment (JRE) installed on your system. GeoServer requires a Java 8 environment. The Oracle JRE is preferred, but OpenJDK has been known to work adequately. You can download JRE 8 from Oracle.

    Note

    Java 9 is not currently supported.

    Note

    For more information about Java and GeoServer, please see the section onJava Considerations.

  2. Navigate to the GeoServer Download page.
  3. Select the version of GeoServer that you wish to download. If you’re not sure, selectStable.
  4. Click the link for the Windows installer.

    Downloading the Windows installer

  5. After downloading, double-click the file to launch.
  6. At the Welcome screen, click Next.

    Welcome screen

  7. Read the License and click I Agree.

    GeoServer license

  8. Select the directory of the installation, then click Next.

    GeoServer install directory

  9. Select the Start Menu directory name and location, then click Next.

    Start menu location

  10. Enter the path to a valid Java Runtime Environment (JRE). GeoServer requires a valid JRE in order to run, so this step is required. The installer will inspect your system and attempt to automatically populate this box with a JRE if it is found, but otherwise you will have to enter this path manually. When finished, click Next.

    Note

    A typical path on Windows would be C:\Program Files\Java\jre8.

    Note

    Don’t include the \bin in the JRE path. So if java.exe is located atC:\Program Files (x86)\Java\jre8\bin\java.exe, set the path to be C:\Program Files(x86)\Java\jre8.

    Note

    For more information about Java and GeoServer, please see the section onJava Considerations.

    Selecting a valid JRE

  11. Enter the path to your GeoServer data directory or select the default. If this is your first time using GeoServer, select the Default data directory. When finished, click Next.

    Setting a GeoServer data directory

  12. Enter the username and password for administration of GeoServer. GeoServer’s Web administration interface requires authentication for management, and what is entered here will become those administrator credentials. The defaults are admin / geoserver. It is recommended to change these from the defaults. When finished, clickNext.

    Setting the username and password for GeoServer administration

  13. Enter the port that GeoServer will respond on. This affects the location of the GeoServer Web administration interface, as well as the endpoints of the GeoServer services such as Web Map Service (WMS) and Web Feature Service (WFS). The default port is 8080, though any valid and unused port will work. When finished, click Next.

    Setting the GeoServer port

  14. Select whether GeoServer should be run manually or installed as a service. When run manually, GeoServer is run like a standard application under the current user. When installed as a service, GeoServer is integrated into Windows Services, and thus is easier to administer. If running on a server, or to manage GeoServer as a service, select Install as a service. Otherwise, select Run manually. When finished, clickNext.

    Installing GeoServer as a service

  15. Review your selections and click the Back button if any changes need to be made. Otherwise, click Install.

    Verifying settings

  16. GeoServer will install on your system. When finished, click Finish to close the installer.
  17. If you installed GeoServer as a service, it is already running. Otherwise, you can start GeoServer by going to the Start Menu, and clicking Start GeoServer in the GeoServer folder.
  18. Navigate to http://localhost:8080/geoserver (or wherever you installed GeoServer) to access the GeoServer Web administration interface.

If you see the GeoServer logo, then GeoServer is successfully installed.

GeoServer installed and running successfully

Windows binary 安装

Note

For the wizard-based installer on Windows, please see the section on the Windows installer. For installing on Windows with an existing application server such as Tomcat, please see the Web archive section.

An alternate way of installing GeoServer on Windows is to use the platform-independent binary. This version is a GeoServer web application bundled inside Jetty, a lightweight and portable application server. It has the advantages of working very similarly across all operating systems and is very simple to set up.

Installation

  1. Make sure you have a Java Runtime Environment (JRE) installed on your system. GeoServer requires a Java 8 environment. The Oracle JRE is preferred, but OpenJDK has been known to work adequately. You can download JRE 8 from Oracle.

    Note

    Java 9 is not currently supported.

    Note

    For more information about Java and GeoServer, please see the section onJava Considerations.

  2. Navigate to the GeoServer Download page.
  3. Select the version of GeoServer that you wish to download. If you’re not sure, selectStable.
  4. Select Platform Independent Binary on the download page.
  5. Download the archive and unpack to the directory where you would like the program to be located.

    Note

    A suggested location would be C:\Program Files\GeoServer.

Setting environment variables

You will need to set the JAVA_HOME environment variable if it is not already set. This is the path to your JRE such that %JAVA_HOME%\bin\java.exe exists.

  1. Navigate to Control Panel ? System ? Advanced ? Environment Variables.
  2. Under System variables click New.
  3. For Variable name enter JAVA_HOME. For Variable value enter the path to your JDK/JRE.
  4. Click OK three times.

Note

You may also want to set the GEOSERVER_HOME variable, which is the directory where GeoServer is installed, and the GEOSERVER_DATA_DIR variable, which is the location of the GeoServer data directory (which by default is %GEOSERVER_HOME\data_dir). The latter is mandatory if you wish to use a data directory other than the default location. The procedure for setting these variables is identical to setting the JAVA_HOME variable.

Running

Note

This can be done either via Windows Explorer or the command line.

  1. Navigate to the bin directory inside the location where GeoServer is installed.
  2. Run startup.bat. A command-line window will appear and persist. This window contains diagnostic and troubleshooting information. This window must be left open, otherwise GeoServer will shut down.
  3. Navigate to http://localhost:8080/geoserver (or wherever you installed GeoServer) to access the GeoServer Web administration interface.

If you see the GeoServer logo, then GeoServer is successfully installed.

GeoServer installed and running successfully

时间: 2024-10-28 11:14:26

GeoServer 下载安装部署(一)的相关文章

Windows下ActiveMQ下载、安装部署

Windows下ActiveMQ下载.安装部署 1.下载:http://activemq.apache.org/download.html 最新Windows版本 2.安装 (1) 首先配置JAVA环境变量 JAVA_HOME=D:\Program Files\Java\jdk1.5.0 CLASSPAHT=.;D:\Program Files\Java\jdk1.5.0\lib\tools.jar;D:\Program Files\Java\jdk1.5.0\lib\td.jar;D:\Pro

Java开发环境部署2.下载安装java jdk 2.1下载与安装 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 下载完后开始安装。注意,安装的路径不能变!!!反正笔者前两次改了安装路径都装不成。 JDK默认安装成功后,会在系统目录下出现两个文件夹,一个代表jdk,一个代表jre。

操作系统:win10 64biteclipse版本:Eclipse Mars (4.5),Eclipse IDE for Java EE DeveloperJava JDK版本:jdk-7u79-windows-x64SDK版本:24.4.1版ADT版本:23.0.4版 1.下载安装java jdk1.1下载与安装 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html JDK默认安装成功后,会在系统目录下出

JBOSS EAP6.2.0的下载安装、环境变量配置以及部署

JBoss是纯Java的EJB(企业JavaBean)server. 第一步:下载安装 1.进入官网http://www.jboss.org/overview/,选择download EAP6.2.0,这个是最新版的, jboss-eap-6.2.0这个压缩文件就仅仅有140M那样. 2.下载完毕后,解压到一个路径纯英文的目录下,如:E:\JBOSS\jboss-eap-6.2.0 第二步:环境变量配置 JBoss的使用必须有JDK,仅仅有JRE是不行的,所以你的电脑必须首先配置Java环境变量

linux运维之weblogic12.1.3安装部署

安装最新的weblogic版本,版本号为 12.1.X(12.1.2,12.1.3).开始以为和旧版安装一样,使用控制台的方式,下载bin文件,然后一步步在console执行下来就行了.万万没想到,从12C版本后,bin文件不提供了,改成全系统通用的jar文件 (generic.jar).试了半天原来那种安装方式不能用了,非得用图形界面安装.由于服务器只能远程登录,于是各种百度.各种找材料,最后终于找到一种静默方式的安装.请看下文. weblogic12C各版本所支持的JDK版本: fmw_12

ELK部署logstash安装部署及应用(二)

Logstash 安装部署注意事项: Logstash基本概念: logstash收集日志基本流程: input-->codec-->filter-->codec-->output input:从哪里收集日志. filter:发出去前进行过滤 output:输出至Elasticsearch或Redis消息队列 codec:输出至前台,方便边实践边测试 数据量不大日志按照月来进行收集 如果通过logstash来采集日志,那么每个客户端都需要安装logstash 安装需要前置系统环境

Zookeeper安装部署

Zookeeper安装部署 Zookeeper部署(单机模式)   下载ZooKeeper ü  http://zookeeper.apache.org/   解压 ü  tar -zxvf zookeeper-3.4.5.tar.gz   配置.在conf目录下创建一个配置文件zoo.cfg: tickTime=2000 dataDir=/home/hadoop/bigdata/zookeeper/datadataLogDir=/home/hadoop/bigdata/zookeeper/da

虚拟化Vmware之安装部署vCenter

vCenter是vSphere解决方案的基础物理架构核心,可以提供如访问控制.性能监控和配置功能等,并且可以将多台ESXi主机资源集中,使这些资源在整个数据中心的虚拟机之间共享.vCenter是一种服务,充当连接网络的ESXi主机的中心管理员. 安装部署vCenterer 一.实验环境 自己的真实机当作客户机 1.首先将DC/DNS(benet.com)服务器的防火墙关闭 2.真实机和虚拟机都设在同一网段 DNS指向DNS服务器. 安装高版本的flash 二.配置sql server    我在

Centos-6.5安装部署redis

redis作为NoSQL数据库的一种应用,响应速度和命中率上还是比较高效的.项目中需要用集中式可横向扩展的缓存框架,因配合开发人员做测试,以下讲讲redis的安装部署过程. 下载redis 官网下载:http://redis.io/download 下载方式及版本依个人情况而定,我选择的版本是redis-3.0.7 wget http://download.redis.io/releases/redis-3.0.7.tar.gz 或者下载完成后拷贝到linux服务器 安装redis 首先安装依赖

Zabbix 安装部署应用

Zabbix 概述 内部运行服务,内置的进程 单节点支持的数量 zabbix实验环境 环境 vmware workstation v12 实验机器192.168.148.130 OS centos 7.2 Zabbix v3.2 Zabbix 包下载安装 安装repo # rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm # yum install zabbix