Advanced Java and Web Technologies for JNTUK
Blog providing beginner tutorials on different web technologies like HTML, CSS, Javascript, PHP, MYSQL, XML, Java Beans, Servlets, JSP and AJAX
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Categories: Installation. No Comments on Installing Apache Tomcat on Ubuntu

This article provides guide for step by step Installing Apache Tomcat on Ubuntu.

 

Pre-Installation Note: It is assumed that you have already installed JDK 7 or higher.

 

  1. Decompress the file:

tar xvzf apache-tomcat-8.0.20.tar.gz

 

  1. Now, move the file into a proper location:

mv apache-tomcat-8.0.20 /opt/tomcat

 

  1. Now let’s set the environment variables in .bashrc:

gedit ~/.bashrc

 

  1. Add this information to the end of the file:

export JAVA_HOME=/usr/local/java/jdk1.8.0_40
export CATALINA_HOME=/opt/tomcat

 

  1. Simply save and exit .bashrc, then make the changes effective by running the following command:

. ~/.bashrc

 

  1. To activate Tomcat, run the following script:

$CATALINA_HOME/bin/startup.sh

 

  1. You should get a result similar to:

Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-7-openjdk-amd64/
Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Tomcat started.

 

  1. Verify that Tomcat is working by visiting the_IP_of_your_server:8080. For example: http://127.0.0.1:8080

 

  1. Congratulations! Apache Tomcat 8 is installed successfully.

 

Download the above instructions in PDF format here

 

For more detailed information, visit: http://www.liquidweb.com/kb/how-to-install-apache-tomcat-8-on-ubuntu-14-04/

How useful was this post?

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Suryateja Pericherla

Suryateja Pericherla, at present is a Research Scholar (full-time Ph.D.) in the Dept. of Computer Science & Systems Engineering at Andhra University, Visakhapatnam. Previously worked as an Associate Professor in the Dept. of CSE at Vishnu Institute of Technology, India.

He has 11+ years of teaching experience and is an individual researcher whose research interests are Cloud Computing, Internet of Things, Computer Security, Network Security and Blockchain.

He is a member of professional societies like IEEE, ACM, CSI and ISCA. He published several research papers which are indexed by SCIE, WoS, Scopus, Springer and others.

Note: Do you have a question on this article or have a suggestion to make this article better? You can ask or suggest us by filling in the below form. After commenting, your comment will be held for moderation and will be published in 24-48 hrs.

Leave a Reply

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