Skip to content

Instantly share code, notes, and snippets.

@iacovlev-pavel
Last active May 8, 2022 06:55
Show Gist options
  • Save iacovlev-pavel/9006ba2f33cafc8d2ab71528f25f9f45 to your computer and use it in GitHub Desktop.
Save iacovlev-pavel/9006ba2f33cafc8d2ab71528f25f9f45 to your computer and use it in GitHub Desktop.
Install GeoServer on Ubuntu 18.04
#
apt-get install openjdk-8-jre
# PostgreSQL and PostGIS
apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4
# Create "geoserver" database
sudo -u postgres createuser -P geoserver
sudo -u postgres createdb -O geoserver geoserver
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver
# GeoServer install
apt install unzip
mkdir -p /var/www/geoserver
cd /var/www/geoserver
wget https://netcologne.dl.sourceforge.net/project/geoserver/GeoServer/2.14.1/geoserver-2.14.1-bin.zip
unzip geoserver-2.14.1-bin.zip
mv geoserver-2.14.1/* .
echo "export GEOSERVER_HOME=/var/www/geoserver" >> ~/.profile
. ~/.profile
# GeoServer run
./bin/startup.sh
In the browser open http://localhost:8080/geoserver/web/
@madankumar-t
Copy link

How to run geoserver with https protocol , what are the configurations required to setup

@coffeejunk
Copy link

How to run geoserver with https protocol , what are the configurations required to setup

You can set up a reverse proxy with a webserver like nginx or caddy. Just make sure to configure CSRF for your domain.

@madankumar-t
Copy link

madankumar-t commented Mar 10, 2021

Thank you , i used tomcat and deployed certificates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment