devops-basics

Apache Tomcat

1. What is Apache Tomcat?

Overview

Apache Tomcat (called “Tomcat” for short) is a free and open-source implementation of the Jakarta Servlet, Jakarta Expression Language, and WebSocket technologies. It provides a “pure Java” HTTP web server environment in which Java code can also run. Thus it is a Java web application server, although not a full JEE application server. Tomcat is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation, released under the Apache License 2.0 license.

Source: https://en.wikipedia.org/wiki/Apache_Tomcat

Official Website of Apache Tomcat

Official Documentation of Apache Tomcat

What you can do with Apache Tomcat


2. Prerequisites


3. Installation

How to Install Apache Tomcat?

  1. Download Apache Tomcat:

  2. Install Java:

    • Ensure JDK is installed on your system. Apache Tomcat requires Java to run.
    • Install JDK Guide
  3. Extract and Configure Tomcat:

    • Extract the downloaded archive to a desired directory.
    • Set the CATALINA_HOME environment variable to the Tomcat installation path.
  4. Start Tomcat:

    • Navigate to the bin directory of your Tomcat installation.
    • Run startup.bat (Windows) or ./startup.sh (Linux/Mac).
  5. Verify Installation:

    • Open a browser and go to http://localhost:8080. You should see the Tomcat welcome page.

4. Basics of Apache Tomcat

Get started with Apache Tomcat

Apache Tomcat quick start guide

Apache Tomcat Hands-On


5. More…

Apache Tomcat Cheatsheet