Geoserver Install: Installation and Configuration of Geoserver
Geoserver Install: Installation and Configuration of Geoserver
Table of Contents
1 Introduction.......................................................................................................................................................................... 3 2 Java Runtime Environment............................................................................................................................................... 4 3 GeoServer install................................................................................................................................................................ 6 4 Starting up GeoServer..................................................................................................................................................... 11 5 OpenLayers Tasmania Preview...................................................................................................................................... 14 6 What to do Next................................................................................................................................................................ 16
GeoServer Install
2/14
1 Introduction
GeoServer is Java Enterprise Edition application used to publish spatial information. It supports a number of Industry Standard protocols and also offers a REST API for configuration. In this workbook we are going to install GeoServer and go over a couple of configuration options. After completing this workbook, you will have: Installed a Java Runtime Environment onto your computer Installed GeoServer using the Windows installer Started up and Customize GeoServer Started the Open Layers Tasmania Preview
GeoServer Install
3/14
1. Download the latest Java SE Runtime Environment from oracle: http://java.sun.com/javase/downloads/ At the time of writing jre_7u1-windows-i586.exe had just been released. Double-click the installer (jre_7u1-windows-i586.exe is used in this example) and accept the license agreement.
GeoServer Install
4/14
3 GeoServer Install
GeoServer can be installed as a windows service or as an application. We will be testing our GeoServer as a normal application. 1. Downloaded the latest GeoServer release: http://geoserver.org/display/GEOS/Stable As this workbook went to press we got a hold of geoserver-2.1.2.exe 2. Double-click the geoserver installer to start.
GeoServer uses the same LGPL GeoTools and ImageIO-Ext projects as uDig.
4. GeoServer will install into the Programmers Files directory, press Next to continue.
GeoServer Install
5/14
6. GeoServer select your current Java Runtime Environment. Press Next to continue.
7. GeoServer will store your configuration in a data directory, the default location will work fine. Press Next to continue.
GeoServer Install
6/14
8. GeoServer provides a web based configuration system allowing you to administer the application remotely. Please accept the default credentials (admin and geoserver) for the purpose of this tutorial.
9. You can also choose the port for the service, 8080 will be fine for this tutorial.
The GeoServer installer uses the Jetty application container. GeoServer is also available as a war if you would like to use Tomcat.
10. We now get to choose Run Manually (as we are just interested in evaluating GeoServer at this time).
GeoServer Install
7/14
11. You can review your settings and then press Finish to install GeoServer.
GeoServer Install
8/14
2. When starting for the first time you will need to grant the Firewall permission for GeoServer to open a port.
If you already jave a web server running on 8080 you can modify the jetty xml file by hand.
3. GeoServer will open up a console running the Jetty Application Server; please wait until Jetty indicates it is listening on port 8080 as shown below.
GeoServer Install
9/14
4. You can use the start menu to open the GeoServer Web Admin Page. The web browser will open: http://localhost:8080/geoserver/web/
5. We need to login before we can use the configuration screen. Fill in admin and geoserver along the top of the screen and press Login.
6. The welcome screen now has a great many more options than in previous versions.
7. You may notice that this GeoServer belongs to The ancient geographes INC. Let us go in and fix that up.
GeoServer Install
10/14
8. Click on Contact Information and fill in the details for your organisation.
9. Press the Submit button, you will be returned to the Welcome screen and you can see the contact organization has been changed. 10. In a similar fashion change the title of the WMS to Local Web Map Server.
GeoServer Install
11/14
4. Click on the highlighted OpenLayers link at the bottom to open a new tab. As this Open Layers application is started up you can watch the GeoServer console respond to queries.
GeoServer Install
12/14
5. This will bring up a web application put together with Open Layers.
This is the same map used as a reference point for the uDig Walkthrough 2 tutorial.
GeoServer Install
13/14
6 What to do Next
If you finish early here are some challenges. The Sample Requests demo lets you try out requests one at a time by selecting them from a List and hitting Submit. Try out a GetFeature request by hand. Try out WMS GetCapabilities and confirm the title is as you defined it. Turn down the amount of logging to let GeoServer run faster Advanced: Have a look at the open layers link for the Tasmania layer preview. Can you explain what trick Geoserver is doing. How can you use GeoServer in your organisation?
GeoServer Install
14/14