Skip to main content

Apache Tomcat Installation Guide

This guide provides all the key information and getting-started instructions after a successful Apache Tomcat installation via DeploySage-CLI. All content is consistent with the terminal output you saw during the installation process.

Installation Summary

Below is the core configuration information for your Tomcat installation. Please note that the specific version number (e.g., 9.0.80) may vary depending on the latest version at the time of your installation.

ItemValue
Installed VersionApache Tomcat 9 / 10 / 11
Installation Directory/usr/local/tomcat-9
Service Nametomcat9
Required Java VersionOpenJDK 8
Default Access Port8080

Usage Guide

Service Management

Viewing Logs

Important Directories and Files

You can manage the Tomcat service for the selected version using standard systemctl commands. Please replace tomcat9 in the commands with the specific service name for your installed version (e.g., tomcat10 or tomcat11).

Tomcat's main log file is catalina.out. You can use the following command to view the log output in real-time:

Understanding Tomcat's directory structure is crucial for deploying and managing applications:

# Start the service
sudo systemctl start tomcat9

# Stop the service
sudo systemctl stop tomcat9

# Restart the service
sudo systemctl restart tomcat9

# Check the service status
sudo systemctl status tomcat9
tail -f /usr/local/tomcat-9/logs/catalina.out
# Main configuration file
/usr/local/tomcat-9/conf/server.xml

# User and role configuration file
/usr/local/tomcat-9/conf/tomcat-users.xml

# Web application deployment directory
/usr/local/tomcat-9/webapps/

Important Notes