设为首页 收藏本站
查看: 3007|回复: 0

[经验分享] GeoServer 下载安装部署(一)

[复制链接]

尚未签到

发表于 2017-3-3 08:49:18 | 显示全部楼层 |阅读模式
  最近由于项目需求,需要用到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包和文档及扩展。如下图:
DSC0000.png

  我这里下载好了这些文件,百度网盘: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.

  • 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.
  • Navigate to the GeoServer Download page.
  • Select the version of GeoServer that you wish to download. If you’re not sure, selectStable.
  • Click the link for the Windows installer.

    DSC0001.png Downloading the Windows installer
  • After downloading, double-click the file to launch.
  • At the Welcome screen, click Next.

    DSC0002.png Welcome screen
  • Read the License and click I Agree.

    DSC0003.png GeoServer license
  • Select the directory of the installation, then click Next.

    DSC0004.png GeoServer install directory
  • Select the Start Menu directory name and location, then click Next.

    DSC0005.png Start menu location
  • 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.

    DSC0006.png Selecting a valid JRE
  • 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.

    DSC0007.png Setting a GeoServer data directory
  • 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.

    DSC0008.png Setting the username and password for GeoServer administration
  • 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.

    DSC0009.png Setting the GeoServer port
  • 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.

    DSC00010.png Installing GeoServer as a service
  • Review your selections and click the Back button if any changes need to be made. Otherwise, click Install.

    DSC00011.png Verifying settings
  • GeoServer will install on your system. When finished, click Finish to close the installer.
  • 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.
  • 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.


DSC00012.png 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

  • 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.
  • Navigate to the GeoServer Download page.
  • Select the version of GeoServer that you wish to download. If you’re not sure, selectStable.
  • Select Platform Independent Binary on the download page.
  • 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.

  • Navigate to Control Panel ‣ System ‣ Advanced ‣ Environment Variables.
  • Under System variables click New.
  • For Variable name enter JAVA_HOME. For Variable value enter the path to your JDK/JRE.
  • 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.

  • Navigate to the bin directory inside the location where GeoServer is installed.
  • 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.
  • 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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-349466-1-1.html 上篇帖子: 权限控制框架Shiro简单介绍及配置实例 下篇帖子: Maven 仓库
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表