How do I install Apache Tomcat 7 in ubuntu

+2 votes
I love Ubuntu since my friend recommended. I wanna install and configure Apache Tomcat 7 in my Ubuntu 12.04 LTS.  Please help.

Thank you.
asked Dec 18, 2012 by dinesh.tomar
edited Dec 18, 2012 by prashant
   

2 Answers

+2 votes
 
Best answer

Download the latest version in tar/zip from tomcat website and extract it.

open the [tomcat extract directory]/bin/catalina.sh in editer and change the JAVA_HOME and JRE_HOME path with your installed java's jdk and jre path.
 
move the tomcat directory to /usr/share/[tomcat7] by following command
 
sudo mv [tomcat extract directory]/     /usr/share/tomcat7 
 
now run the catalina.sh by folowing command
 
sudo /usr/share/tomcat7/bin/catalina.sh
 
answered Dec 18, 2012 by sumit
edited Dec 19, 2012 by prashant
It Works for me, thanks bro
+1 vote

You can install Tomcat 7 in Ubuntu  12.04 using below terminal command.

sudo apt-get install tomcat7

Before install first confirm that no earlier version installed in system if installed please remove that.

answered Dec 18, 2012 by prashant
...