Skip to content

Instantly share code, notes, and snippets.

@falu
Created February 12, 2019 14:28
Show Gist options
  • Save falu/1c077f67f009ac487305983c78c767b7 to your computer and use it in GitHub Desktop.
Save falu/1c077f67f009ac487305983c78c767b7 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