Day 11: Install and Configure Tomcat Server

Опубликовано: 19 Май 2026
на канале: Otter Tech
11
0

In this Day 11 lab of the #100DaysOfDevOps series, we transition from shell scripting to application deployment. The objective is to deploy a beta version of a Java-based application onto an Apache Tomcat server within the Nautilus infrastructure.

Lab Objectives

The core goal is to install, configure, and deploy a web application archive (WAR) file to a specific application server.

Key Procedural Steps:

Tomcat Installation:

Access App Server 3 (stapp03) as user banner.

Use the package manager to install the Tomcat server: sudo yum install tomcat -y.

Server Configuration:

Modify the Tomcat configuration file located at /etc/tomcat/server.xml.

Change the default connector port from 8080 to 8082 as per the requirements.

Application Deployment:

Locate the application file (root.war) on the Jump Host at /tmp/.

Transfer the file to the Tomcat webapps directory on App Server 3.

Note: To handle permission restrictions, the file was first copied to /tmp on the target server before being moved to /var/lib/tomcat/webapps/ using sudo.

Service Management & Verification:

Start the Tomcat service to apply changes: sudo systemctl start tomcat.

Verify the deployment by accessing the application via the designated URL to confirm the Java app is live.

By successfully completing this lab, you have mastered the basics of Java application hosting and server port customization.

#JavaDeployment #ApacheTomcat #DevOps #LinuxAdmin #WebServers #Nautilus #TechTutorial #OtterTech