How to Install and Configure Apache Tomcat 9 in CentOS

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

13 Responses

  1. MS Zaid says:

    While downloading the Tomcat 8 using the below url am getting error, i suggest you to change the new url and update it

    wget http://ftp.itu.edu.tr/Mirror/Apache/tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9.tar.gz
    –2018-09-23 12:45:51– http://ftp.itu.edu.tr/Mirror/Apache/tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9.tar.gz
    Resolving http://ftp.itu.edu.tr... 160.75.25.15
    Connecting to http://ftp.itu.edu.tr|160.75.25.15|:80… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2018-09-23 12:45:51 ERROR 404: Not Found.

  2. Kiran says:

    Issue while running shutdown.sh in tomcat

    Using CATALINA_BASE: /opt/tomcat
    Using CATALINA_HOME: /opt/tomcat
    Using CATALINA_TMPDIR: /opt/tomcat/temp
    Using JRE_HOME: /usr/
    Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar

    Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

    Please help ..

    Thanks
    Kiran

  3. Abhishek Srivastava says:

    I need to install Apache 2.3.2 on Haswell processor which only support RHEL 6.xx. Whereas Apache being 32bit, I am not able to install it. Is there is any way out considering I cannot change any version of OS or Apache.

  4. Martial says:

    Hi Hanny Helal, i believe you are the best instructor, i dont have no problem like you are next to me. However i really want you to explain how can we install the weblogic and how to setting up. Thank you so much Hanny H.

  5. KD says:

    I followed your instructions to the teeth. Zero problems. Worked like a charm. I have to say, this is the best instruction on installing apache-tomcat on the entire internet. I do not say this lightly. First time, I comment on any website when looking for information

  6. Roberto Aleggri says:

    I cannot open tomcat when i navigate to my server IP address.
    Maybe there is some configuration error or i just didn’t follow good on the commands here.

    I checked this tutorial: https://www.rosehosting.com/blog/installing-tomcat-8-on-a-centos-7-linux-vps/ and it is very similar to this, but somehow everything worked OK after completing the one article from Rosehosting.

  7. Naveen says:

    Thanks…………….nice and simple tutorial………….it’s working on my centos 6.0

  8. Aminul Islam says:

    Hello there,

    I’ve installed with no error. But its not working. When i visit my ip it can’t open.

    [email protected]:/opt/apache-tomcat-8.0.9/bin# ./startup.sh
    Using CATALINA_BASE: /opt/apache-tomcat-8.0.9
    Using CATALINA_HOME: /opt/apache-tomcat-8.0.9
    Using CATALINA_TMPDIR: /opt/apache-tomcat-8.0.9/temp
    Using JRE_HOME: /usr
    Using CLASSPATH: /opt/apache-tomcat-8.0.9/bin/bootstrap.jar:/opt/apache-tomcat-8.0.9/bin/tomcat-juli.jar
    Tomcat started.

    Please look above output, there was no error.

    can you please tell whats going there?

    • Hanny Helal says:

      Hello Aminul.

      Yes, in the output there is no error as i can see, ./startup.sh is just telling you the CATALINA_BASE, CATALINA_HOME…etc paths which Tomcat will use to run other files, those variables are necessary to run Tomcat and ./startup.sh is setting them.

      Thanks.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.