Sitemap
DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.

Press enter or click to view image in full size

Member-only story

Set up a Tomcat Server on Linux

2 min readJul 31, 2022

--

Non-member: Click!

Step 1.
First, you need to install Java on your system, Install the default available version of Java using the following yum command and verify the Java version as shown.

yum -y install java-1.8.0-openjdk
java -versionSet java path : /root/.bash_profile
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.x86_64
echo $JAVA_HOME
source /root/.bash_profile

Step 2.
Download tomcat package from below URL

Ref : https://tomcat.apache.org/download-80.cgiwget http://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.38/bin/apache-tomcat-8.5.38.tar.gz

Step 3.
Unpack the tarball:

tar -xzf apache-tomcat-8.5.38.tar.gz

Step 4.
Give execute permission to startup.sh and shutdown.sh

cd /opt/apache-tomcat-8.5.38/bin/ 
chmod +x startup.sh shutdown.sh

Step 5.
Create soft links for tomcat start and stop

ln -s /opt/apache-tomcat-8.5.38/bin/startup.sh /usr/bin/tomcatup
ln -s /opt/apache-tomcat-8.5.38/bin/shutdown.sh /usr/bin/tomcatdown
ln -s…

--

--

17+ years of IT professional experience, focused on DevOps, DevSecOps, SRE, and cloud engineering. Goal is simple to make complex concepts easy to understand

DevOps.dev
DevOps.dev

Published in DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.