We're here to assist with any of your needs, don't hestitate to reach out.
Apache Tomcat is an open-source web server and Java servlet container that is used to deploy and run Java web applications. It provides support for Java Servlet, JavaServer Pages (JSP), WebSocket, and other Java EE technologies.
Here are the steps to install Apache Tomcat on CentOS 8:
sudo dnf update
sudo dnf install java-1.8.0-openjdk-devel
wget https://downloads.apache.org/tomcat/tomcat-x.y.z.tar.gz
tar -xf tomcat-x.y.z.tar.gz
sudo mv tomcat-x.y.z /opt/
export CATALINA_HOME="/opt/tomcat-x.y.z"
export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk"
export JRE_HOME="/usr/lib/jvm/java-1.8.0-openjdk/jre"
export PATH="$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin"
sudo chmod +x /etc/profile.d/tomcat.sh
source /etc/profile.d/tomcat.sh
sudo systemctl start tomcat
sudo systemctl enable tomcat
You have successfully installed Apache Tomcat on CentOS 8!
What our customers say about us
Create your free account today.