Skip to content

Instantly share code, notes, and snippets.

@donjoe1996
Forked from falu/readme.md
Created June 29, 2020 01:13
Show Gist options
  • Save donjoe1996/246a169ec96b7c6345541094afa431dd to your computer and use it in GitHub Desktop.
Save donjoe1996/246a169ec96b7c6345541094afa431dd to your computer and use it in GitHub Desktop.
GeoServer Installation On Ubuntu Server 18.04 LTS

GeoServer Installation On Ubuntu Server 18.04 LTS

Install Tomcat8:

sudo apt-get install default-jre tomcat8 tomcat8-admin

Add a new Tomcat user:

sudo nano /etc/tomcat8/tomcat-users.xml
<role rolename="manager-gui"/>
   <user username="admin" password="admin" 
      roles="manager-gui,admin-gui,manager,admin,manager-script,admin-script"/>

Increase the deploy filesize:

sudo nano /usr/share/tomcat8-admin/manager/WEB-INF/web.xml
<multipart-config>
     <!-- 50MB max -> Increase this value below: -->
     <max-file-size>92428800</max-file-size>
     <max-request-size>92428800</max-request-size>

Install GeoServer .war file:

    sudo mv geoserver.war /var/lib/tomcat8/webapps/

Restart Tomcat:

sudo /etc/init.d/tomcat8 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment