Menu
User

DropVPS Team

Writer: Cooper Reagan

How to install Apache Tomcat on Debian 12

How to install Apache Tomcat on Debian 12

Publication Date

09/23/2025

Category

Articles

Reading Time

2 Min

Table of Contents

Apache Tomcat is an open-source Java Servlet container for running Java web applications. Installing it on Debian 12 allows you to deploy and manage Java-based web projects efficiently.

Step 1: Update System Packages

sudo apt update && sudo apt upgrade -y

Step 2: Install Java

Tomcat requires Java to run. Install OpenJDK 17:

sudo apt install openjdk-17-jdk -y

Verify Java installation:

java -version

Step 3: Download Apache Tomcat

Go to the /opt directory and download the Tomcat 10 version:

cd /opt
sudo wget https://downloads.apache.org/tomcat/tomcat-10/v10.2.0/bin/apache-tomcat-10.2.0.tar.gz
Extract the archive:
sudo tar xzf apache-tomcat-10.2.0.tar.gz

Rename the folder for easier access:

Rename the folder for easier access:

Step 4: Set Permissions

Make the Tomcat scripts executable:

cd /opt/tomcat/bin
sudo chmod +x *.sh

Step 5: Start Tomcat

Run the startup script:

sudo ./startup.sh

Open your browser and navigate to:

http://localhost:8080

Apache Tomcat is now installed and running on Debian 12. Deploy Java web applications by placing them in the /opt/tomcat/webapps directory.

Linux VPS
U
Loading...

Related Posts

How to install Apache Tomcat on Debian 12