Skip to content

Instantly share code, notes, and snippets.

@falu
Forked from marcellobenigno/readme.md
Last active February 15, 2021 07:06
Show Gist options
  • Save falu/f3fb6931618c1ed87ce4539cee92dcde to your computer and use it in GitHub Desktop.
Save falu/f3fb6931618c1ed87ce4539cee92dcde 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
@falu
Copy link
Author

falu commented Feb 12, 2019

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