Skip to content

Instantly share code, notes, and snippets.

@afahitech
Created December 7, 2021 16:11
Show Gist options
  • Save afahitech/d66cb3c54f1369c6c50e80f586fda878 to your computer and use it in GitHub Desktop.
Save afahitech/d66cb3c54f1369c6c50e80f586fda878 to your computer and use it in GitHub Desktop.
How to install GeoSever into Ubunut 20.04 LTS
#!/bin/sh
# Install Java
sudo apt install default-jre
java --version
ufw status
sudo ufw status
sudo enable ufw
sudo ufw enable
#Install tomcat
wget https://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.0/bin/apache-tomcat-9.0.0.tar.gz
sudo tar xzvf apache-tomcat-9*tar.gz -C /opt/tomcat --strip-components=1
sudo systemctl enable tomcat9
sudo service tomcat9 start
sudo service tomcat9 status
# Install Geoserver
wget https://sourceforge.net/projects/geoserver/files/GeoServer/2.18.0/geoserver-2.18.0-war.zip
cd /var/lib/tomcat9/webapps
sudo unzip geoserver-2.18.0-war.zip
ls
sudo rm geoserver-2.18.0-war.zip
sudo service tomcat9 status
sudo service tomcat9 start
sudo service tomcat9 status
# localhost:8080/geoserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment