no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tomcat [2017/09/29 05:49] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Apache Tomcat ====== | ||
+ | * [[http:// | ||
+ | |||
+ | ** Environment Variables ** | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | You can override variables for in ''/ | ||
+ | |||
+ | Add '' | ||
+ | |||
+ | ** Starting / stopping ** | ||
+ | |||
+ | Two options: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ** Libraries ** | ||
+ | |||
+ | JAR files and external libraries can go in ''/ | ||
+ | |||
+ | ** Sites ** | ||
+ | |||
+ | Sites are installed in ''/ | ||
+ | |||
+ | ==== Ubuntu 16.04 === | ||
+ | |||
+ | Install OpenJDK 8: | ||
+ | |||
+ | < | ||
+ | apt-get -y install default-jre default-jre-headless | ||
+ | </ | ||
+ | |||
+ | Install Tomcat 8: | ||
+ | |||
+ | < | ||
+ | apt-get -y install tomcat8 | ||
+ | </ | ||
+ | |||
+ | Tomcat by default listens on port 8080. To listen on port 80, two things need to change. | ||
+ | |||
+ | First, edit ''/ | ||
+ | |||
+ | Second, update ''/ | ||
+ | |||
+ | Your Ubuntu install may or may not have authbind already installed, so add that package as well if needed: | ||
+ | |||
+ | < | ||
+ | apt-get -y install authbind | ||
+ | </ | ||
+ | |||
+ | == Admin Interface == | ||
+ | |||
+ | The default homepage for the '' | ||
+ | |||
+ | < | ||
+ | apt-get -y install tomcat8-docs tomcat8-examples tomcat8-admin | ||
+ | </ | ||
+ | |||
+ | For accessing the manager and host-manager webapps, you will need to add users in ''/ | ||
+ | |||
+ | < | ||
+ | <role rolename=" | ||
+ | <role rolename=" | ||
+ | <user username=" | ||
+ | </ | ||
+ | |||
+ | Once the users are added, restart Tomcat as normal: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ |