
Java Development Kit (JDK) can be used to run Java web application, you can install Java Development Kit (JDK) package with the following command: sudo apt-get install default-jdk You can update these with the following command: sudo apt-get update A non-root user with sudo privileges configured.īefore you begin you will need to update your apt-get package lists.This article will walk you through the installation and configuration of Tomcat 8 on a server running Ubuntu 16.04. Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_74-b02) You should see the following output: java version "1.8.0_74" Once Java is installed, you can verify the installed Java version using the following command: java -version #Intro to apache tomcat 8 install It is recommend that Tomcat run as an unprivileged user for security purposes. Next, create a new tomcat user and make this user member of the tomcat group with home directory /opt/tomcat: sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat To create a tomcat group, run: sudo groupadd tomcat You will need to create a new user and group that will run the Tomcat service.

Once everything is up-to-date, download the latest version of Tomcat from the Tomcat 8 Downloads page.
