How To Install Apache Tomcat 8 PDF
How To Install Apache Tomcat 8 PDF
How To Install Apache Tomcat 8 PDF
Introduction
Apache Tomcat is an open-source web server and servlet container developed by
the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications
including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a "pure
Java" HTTP web server environment for Java code to run in. The latest stable Tomcat release
is 8.5 and in this article, we will see how to install and configure Tomcat 8.5 on AIX 7.2
Unzip and untar the downloaded tomocat gzip file on the AIX system. As Tomcat is purely
written in Java it does not require any special install process. After untar the Tomcat is
available to run.
# gunzip apache-tomcat-8.5.13.tar.gz
# tar -xvf apache-tomcat-8.5.13.tar
Sample output
Now we are all set to start Tomcat webserver. Go to apache-tomcat-8.5.13/bin directory
and run ./startup.sh script to start Tomcat server.
# cd /opt/tomcat/apache-tomcat-8.5.13/bin
# ./startup.sh
Sample output
Now you can open Tomcat from your web browser. By default, Tomcat starts on port 8080.
So to open Tomcat using http://<aix system ip or hostname.domain>:8080
Sample output
Also, to access web interface we need to provide access to system from where the Tomcat
server is getting accessed, this is the system where you have opened web browser to access
Tomcat server. To add the system ip in access list edit the file /opt/tomcat/apache-tomcat-
8.5.13/webapps/manager/META-INF/context.xml and /opt/tomcat/apache-tomcat-
8.5.13/webapps/host-manager/META-INF/context.xml and add your system ip, for example
my system ip is 10.10.10.11
# vi /opt/tomcat/apache-tomcat-8.5.13/webapps/manager/META-
INF/context.xml
# vi /opt/tomcat/apache-tomcat-8.5.13/webapps/host-
manager/META-INF/context.xml
Sample output
Now everything is setup. Restart Tomcat and access web interface. To restart shutdown and
start Tomcat server again.
# cd /opt/tomcat/apache-tomcat-8.5.13/bin
# ./shutdown.sh
# ./startup.sh
Sample output
Step 4: Access Tomcat Web Management Interface
Now we have created a user and provided access to the system for accessing web
management interface. Open the browser and enter your server's domain name or IP
address with port 8080. Default Tomcat page will be shown, click on Manager App or other
web management interface and it will ask username and password. Enter the username and
password provided in the tomcat-users.xml.
It will show you
Congratulation!!! you have setup Tomcat server on AIX. You can start deploying you Java
applications.