Tuesday, July 28, 2009

Installing Apache Tomcat on Ubuntu

First download apache-tomcat-6.0.20 from http://tomcat.apache.org/. Extract it in your chosen directory, I extracted it in my home directory.
After that run startup.sh to start tomcat. If it can't be run on terminal or it is opened by text editor, edit its properties -> Permissions tab -> and then tick 'execute checkbox' to allow executing file as program. Repeate it for catalina.sh.
And then add export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.14 and export CATALINA_HOME=/home/matt/apache-tomcat-6.0.20 to your environment variable (/etc/profile), logout.
Last step is add permission to your .sh file : sudo chmod 755 *.sh on apache-tomcat-6.0.20/bin directory.
Try again to run it with ./startup.sh. To stop it run ./shutdown.sh.

That's all...

0 comments:

 

©2009 Stay the Same | by TNB