Skip to content

Instantly share code, notes, and snippets.

@donjoe1996
Forked from falu/readme.md
Created June 29, 2020 01:12
Show Gist options
  • Save donjoe1996/87565749371e45a08d3029538e990c90 to your computer and use it in GitHub Desktop.
Save donjoe1996/87565749371e45a08d3029538e990c90 to your computer and use it in GitHub Desktop.
Install Geoserver on Ubuntu Server 16.04 LTS

GeoServer Installation On Ubuntu Server 16.04 LTS

Install Tomcat7:

sudo apt-get install tomcat7 tomcat7-admin

Add a new Tomcat user:

sudo nano /etc/tomcat7/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/tomcat7-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/tomcat7/webapps/

Restart Tomcat:

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