The Apache Tomcat software is an open source which helps to run Java Servlet, JavaServer Pages, Java Expression Language and Java Web-socket technologies. For your better understanding apache tomcat is a web server that serves JSP pages.
Apache Tomcat is trademark of the Apache Software Foundation.
In this articles we are going to install Apache Tomcat through source file on /usr/local/ directory. Where we going to run our web server. The default port for Apache Tomcat is 8080.
Installing from source used to be very common and also quite simple. You would download the source file, unpack it (with either zip or tar), then issue the commands to the the directory you want to install it.
Java to be installed, There is a single requirement for Apache tomcat that is your server should be installed with Java or JDK.
We are going to install JDK 8 since it helps to run the tomcat more efficient,
$ yum install java-1.8.0-openjdk.x86_64
To check your server's Java versions,
$ java -version
jhony@ljunix~$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
You can also install different version of Java according to your requirements. Click here for setting up it.
1.Downloading the source package:
Get the source file for the desired version from the official website of Apache, where you can find the latest version. click here to download latest package
You can either download or wget the file (tar.gz and zip are available for Linux).