Install GeoServer
Step-by-step guide to deploy GeoServer on your infrastructure using Docker, Tomcat, Standalone, or Windows Installer.
Prerequisites
Ensure your environment meets the following requirements before installation:
| Requirement | Specification |
|---|---|
| Operating System | Linux, macOS, or Windows 10/11 |
| Java Runtime | OpenJDK 8, 11, or 17 (64-bit) |
| Disk Space | âĨ 500 MB free |
| Memory | âĨ 1 GB RAM (2 GB recommended) |
| Network | Open port 8080 (default) |
Installation Methods
Choose the deployment method that best fits your infrastructure:
docker pull osgeo/geoserver:latestdocker volume create geoserver_datadocker run -d -p 8080:8080 --name geoserver -v geoserver_data:/opt/geoserver/data_dir osgeo/geoserver:latestJETTY_HOST=0.0.0.0 or GEOSERVER_ADMIN_PASSWORD=securepwd to configure at runtime.
Download and install Apache Tomcat from tomcat.apache.org. Verify installation:
catalina.sh versionwget https://repo1.maven.org/maven2/org/geoserver/geoserver-war/2.24.0/geoserver-war-2.24.0.warsudo cp geoserver-war-2.24.0.war /opt/tomcat/webapps/geoserver.war\nsudo /opt/tomcat/bin/startup.shGet the geoserver-2.24.0-bin.zip from the official download page or Maven Central.
unzip geoserver-2.24.0-bin.zip -d /opt/geoserver\ncd /opt/geoserver/bin\nchmod +x startup.sh\n./startup.shjetty.xml to change ports or bindings.
Run geoserver-2.24.0-setup.exe as Administrator.
- Select installation directory (default:
C:\Program Files\GeoServer) - Choose HTTP port (default: 8080)
- Install Windows Service (recommended)
Access http://localhost:8080/geoserver/web or start via Services.msc
Verify Installation
After deployment, confirm GeoServer is running correctly:
Troubleshooting
Another service is binding to the default port. Run sudo lsof -i :8080 to identify it, or change GeoServer's port:
export JETTY_PORT=9090 # Or use GEOSERVER_HOME/bin/setenv.shGeoServer requires Java 8, 11, or 17. Check your version:
java -versionIf using an incompatible version, set JAVA_HOME to a supported JDK path.
Check the main log file for startup errors:
$GEOSERVER_HOME/logs/geoserver.logEnable debug logging by modifying log4j.properties in the WEB-INF directory.