Step-by-step – Tomcat 9 Installation in Ubuntu 20.04

March 30, 2021 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading Tomcat 9

    Download Apache Tomcat 9 Java Server.

    Apache Tomcat 9 tar.gz
  2. 3. Extracting Tomcat 9

    Then Extract Tomcat 9 into /tmp
    Eventually Double-Click on Archive to Open with Archive Manager:


    Or from Shell:

    tar xvzf ~/Downloads/apache-tomcat-9*.tar.gz -C /tmp/
  3. 4. Installing Tomcat 9

    And to Install Apache Tomcat 9 on Ubuntu
    First, Set Permissions & Ownership with:

    sudo chown -R root:root /tmp/apache-tomcat-9*
    sudo chmod -R +xr /tmp/apache-tomcat-9*

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.
    Then Switch the contents into the Target:

    sudo mv /tmp/apache-tomcat-9* /opt/apache-tomcat-9

    This for a System-wide Setup.

  4. 5. Installing Oracle JDK

    How to Install Required Oracle-Sun JDK 8+ on Ubuntu

    Install Oracle JDK for Ubuntu
  5. 6. Starting Tomcat 9

    Now the Commands to Start and Stop Tomcat 9 Server
    To Start it Up:

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

    And to Shut it Down:

    sudo /opt/apache-tomcat-9/bin/shutdown.sh

Contents


QuickChic Theme • Powered by WordPress