The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • iClever Q950 Kids Headphones Review: Premium Sound and Safety for Young Listeners

  • The Reckless Ben Controversy: An Outrageous Fight for Justice

  • Outrageous: The Sydney Sweeney Ad Controversy You Didn’t See Coming — And Why It’s Working

  • The AI CRM War: Why Salesforce Just Made a $2 Billion Bid for a Startup

  • OpenAI’s Navier-Stokes ‘Solution’ Ignites Firestorm: Did They Steal It?

  • Blizzard’s Boldest Bet: Why a StarCraft Shooter in 2030 Could Redefine Gaming

  • Volatile: Why Top AI Bosses Just Triggered a Massive AI Stocks Decline

  • ‘Godfather of AI’ backs Anthropic chief’s call to slow down development

  • Why Millions Are Flocking to Trade Schools as AI Reshapes the Job Market

  • Unmasking the Bizarre ‘Cat in the Hat’ Trend: Why Schools Are Sounding the Alarm

Assistive Technology
Home›Assistive Technology›A Step by Step Guide to Installing Apache Tomcat 9 Linux

A Step by Step Guide to Installing Apache Tomcat 9 Linux

By Matthew Lynch
June 10, 2023
0
Spread the love

Apache Tomcat is an open-source Java Servlet Container developed by Apache Software Foundation that is used to run Java applications. This container runs applications that are written in Java, and its primary purpose is to create a Java web server that is capable of hosting Java-based web applications. In this article, we will provide a step-by-step guide on how to install Apache Tomcat 9 Linux.

Step 1: Update your System

The first thing you should do is update your system to ensure that all of the packages you’ll need are up-to-date. To do this, open the terminal and enter the following command:

sudo apt-get update

Step 2: Install Java

Apache Tomcat 9 requires Java to be installed on your server. If you don’t have a Java installed, you’re going to want to install one.

sudo apt-get install default-jre

Alternatively, you can install the OpenJDK version:

sudo apt-get install openjdk-8-jdk

Step 3: Download Apache Tomcat 9

Now that Java is downloaded and installed, you can proceed to download the latest version of Tomcat. You can do this simply by visiting the official Apache Tomcat 9 web page and copy the link to the hyperlink next to the Linux tar.gz Binary.

wget https://downloads.apache.org/tomcat/tomcat-9/v9.0.50/bin/apache-tomcat-9.0.50.tar.gz

Step 4: Extract the Tar.gz Archive

Once the download of the Tomcat 9 binary is complete, extract the tar.gz file to the opt directory (/opt/) using the tar command.

sudo tar -zxvf apache-tomcat-9.0.50.tar.gz -C /opt/

Step 5: Set the Variable

To access Tomcat from your local web browser, you need to set some environment variables such as JAVA_HOME, CATALINA_HOME, and some others.

Use the Nano editor to edit the environment file.

sudo nano /etc/environment

After that, set the environment variables as shown below:

JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre
CATALINA_HOME=/opt/apache-tomcat-9.0.50
CATALINA_BASE=/opt/apache-tomcat-9.0.50
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$CATALINA_HOME/bin

Step 6: Create Admin User

By default, no user has admin access to your Tomcat server, which is recommended for security purposes. To create an admin user, create a tomcat-users.xml file in the /opt/apache-tomcat-9.0.50/conf directory and add the following lines to it.

sudo nano /opt/apache-tomcat-9.0.50/conf/tomcat-users.xml

Step 7: Launch Apache Tomcat 9

To launch the Tomcat server, execute the following command:

sudo sh /opt/apache-tomcat-9.0.50/bin/startup.sh

Step 8: Access Tomcat from Web Browser

Now that the Tomcat server is running, you can access it from any web browser by entering:

http://your_server_IP:8080

You will be prompted for the admin user credentials that you created earlier. Once you enter the login information, you will be directed to the Tomcat Administration page.

Conclusion

By following the above guide, you can now install and run Apache Tomcat 9 on your Linux machine. Apache Tomcat is one of the most popular Java application servers globally and is an excellent choice for web application deployment.

Previous Article

Will Coinbase Refund Your Crypto if You’re ...

Next Article

The Best Linux Desktop Environments

Matthew Lynch

Related articles More from author

  • Assistive Technology

    What Is USB OTG and What Does It Do?

    June 4, 2023
    By Matthew Lynch
  • Assistive Technology

    How to Fix Outlook Not Sending Emails

    June 10, 2023
    By Matthew Lynch
  • Assistive Technology

    What Does the Shell Infrastructure Host Process Do on Windows? How to Fix Its High Resources Consumption

    August 5, 2023
    By Matthew Lynch
  • Assistive Technology

    How to Move Your Data and Programs to a New Hard Drive

    June 23, 2023
    By Matthew Lynch
  • Assistive Technology

    College Help Desks Use Modern Tech Solutions To Enhance Services

    November 19, 2021
    By Matthew Lynch
  • Assistive Technology

    How to Change Your DNS Settings to Increase Speed

    June 14, 2023
    By Matthew Lynch

Search

Login & Registration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2026 Matthew Lynch. All rights reserved.