How to Install Tomcat 8.5.15 in CentOS/RHEL 6/7



Download tomcat tar package

Extract file
# tar -zvxf apache-tomcat-8.5.15.tar.gz
# cd apache-tomcat-8.5.15

Set environment variable
# echo "export CATALINA_HOME="/opt/apache-tomcat-8.5.15"" >> ~/.bashrcecho "export CATALINA_HOME="/opt/apache-tomcat-8.5.15"" >> ~/.bashrc

Update file
# source ~/.bashrc

Start tomcat service
# cd /opt/apache-tomcat-8.5.15
# ./bin/startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-8.5.15
Using CATALINA_HOME:   /opt/apache-tomcat-8.5.15
Using CATALINA_TMPDIR: /opt/apache-tomcat-8.5.15/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/apache-tomcat-8.5.15/bin/bootstrap.jar:/opt/apache-tomcat-8.5.15/bin/tomcat-juli.jar
Tomcat started.

Now access server from below URL

Put /opt/apache-tomcat-8.5.15/bin/startup.sh script in /etc/rc.local file to auto start server on boot.

# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
/opt/apache-tomcat-8.5.15/bin/startup.sh
touch /var/lock/subsys/local

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

12 comments:

  1. Thanks for sharing. Keep sharing

    ReplyDelete
  2. Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
    Blueprism training in annanagar

    Blueprism training in velachery

    Blueprism training in marathahalli


    AWS Training in chennai

    AWS Training in bangalore

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    angularjs Training in marathahalli

    angularjs interview questions and answers

    angularjs Training in bangalore

    angularjs Training in bangalore

    angularjs Training in chennai

    ReplyDelete
  5. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    advanced excel training in bangalore

    ReplyDelete
  6. I am unable to download that link getting 404 error tried on Centos 7 and RHEL 6.4 got the same error.

    ReplyDelete
  7. Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete
  8. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any Data science Related information please visit our website best course for data science page!

    ReplyDelete