Let’s download the latest binary distribution to our home directory using wget.įirst, install wget using the yum package manager: Under the Binary Distributions section, then under the Core list, copy the link to the “tar.gz”. At the time of writing, the latest version is 8.5.37. Download Tomcat Binaryįind the latest version of Tomcat 8 at the Tomcat 8 Downloads page. The easiest way to install Tomcat 8 at this time is to download the latest binary release then configure it manually. Now that our tomcat user is set up, let’s download and install Tomcat.
We will create a new user and group that will run the Tomcat service. Create Tomcat Userįor security purposes, Tomcat should be run as an unprivileged user (i.e.
Now that Java is installed, let’s create a tomcat user, which will be used to run the Tomcat service. Note that a shortcut to the JAVA_HOME directory, which we will need to configure Tomcat later, can be found at /usr/lib/jvm/jre.
You can learn how to do this by completing steps 1-3 in the initial server setup for CentOS 7. Prerequisitesīefore you begin with this guide, you should have a separate, non-root user account set up on your server. This tutorial covers the basic installation and some configuration of the latest release of Tomcat 8 on your CentOS 7 server. Tomcat is an open source implementation of the Java Servlet and JavaServer Pages technologies, released by the Apache Software Foundation. Apache Tomcat is a web server and servlet container that is used to serve Java applications.