Install Apache Tomcat 8 on CentOS 7

Apache Tomcat is an open-source web server that is designed to serve Java web pages. It is widely deployed and powers various mission-critical web applications around the world.
As a starter guide, this article explains how to install Apache Tomcat 8, the latest stable version of Apache Tomcat, onto a Vultr CentOS 7 server instance.


Deploy a fresh CentOS 7 server instance.
Log into this machine from your SSH terminal as a non-root sudo user.

Update your CentOS system

yum install epel-release; yum update -y;

install java

yum install java -y

Create a user for Apache Tomcat

groupadd tomcat
mkdir /opt/tomcat
useradd -s /bin/nologin -g tomcat -d /opt/tomcat tomcat

 install the latest Apache Tomcat

tar -zxvfapache-tomcat-8.5.23-deployer.tar.gz -C /opt/tomcat –strip-components=1

Setup proper permissions


Be the first to comment

Leave a Reply

Your email address will not be published.