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.
- Decompress the file:
tar xvzf apache-tomcat-8.0.20.tar.gz
- Now, move the file into a proper location:
mv apache-tomcat-8.0.20 /opt/tomcat
- Now let’s set the environment variables in .bashrc:
gedit ~/.bashrc
- Add this information to the end of the file:
export JAVA_HOME=/usr/local/java/jdk1.8.0_40
export CATALINA_HOME=/opt/tomcat
- Simply save and exit .bashrc, then make the changes effective by running the following command:
. ~/.bashrc
- To activate Tomcat, run the following script:
$CATALINA_HOME/bin/startup.sh
- 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.
- Verify that Tomcat is working by visiting the_IP_of_your_server:8080. For example: http://127.0.0.1:8080
- 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/
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.
Leave a Reply