Member-only story
Set up a Tomcat Server on Linux
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_profileexport 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.gzStep 4.
Give execute permission to startup.sh and shutdown.sh
cd /opt/apache-tomcat-8.5.38/bin/
chmod +x startup.sh shutdown.shStep 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…





