Download Link for Tomcat server
http://tomcat.apache.org/download-80.cgi
Filename: zip (download zip file)
Install Apache Tomcat
Unzip the folder
# unzip linux-apache-tomcat-8.5.9.zip
Give execute permission
# chmod -R 755 apache-tomcat-8.5.9/
Check the dependent variable
# echo $JAVA_HOME
/usr/java/default
Run the Apache Tomcat
# ./bin/catalina.sh start

Stop the Apache Tomcat
# ./bin/catalina.sh stop
Change the port 8080 to 8181
# vim conf/server.xml

Download Link for JDK
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Filename: jdk-8u111-linux-x64.rpm
Check Java in your machine
# java -version
#echo $JAVA_HOME
Remove java from your machine
# Yum remove java*
Installing Java
# rpm -Uvh jdk-8u111-linux-x64.rpm
# vi /etc/profile
In Editor write following
export JAVA_HOME=/usr/java/default
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
# source /etc/profile
Then check the java installation by follwoing command
# java -version
#echo $JAVA_HOME
Copy the folder ‘Packages’ to the linux machine

It can be extracted from the linux ISO file. This Packages folder contain all the required packages.
Run Following Command. I have copied Packages into /root/ location
# createrepo /root/Packages
Go to following directory
# cd /etc/yum.repos.d
# ls
# vim mentor.repo
In Editor
[local]
name=local yum repo
baseurl=file:///root/Packages
enabled=1
gpgcheck=0
Run following command
# yum clean all
# yum list all
Now ready to install packages from Yum
# yum -y install <package_name>
Check list of package in yum
yum list
yum list all
yum list installed