install Tomcat on Ubuntu

First of all, we have successfully installed Ubuntu.

      if needed, please do the following things first:
      cd /etc/apt/
      sudo mv sources.list sources.list.1
      sudo wget http://blog.rubypdf.com/wp-download/sources.list
      sudo apt-get update
      install JDK 5.0
      sudo apt-get install sun-java5-jdk
      install tomcat5.5.20
      sudo wget http://apache.justdn.org/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5.20.tar.gz
      tar zxfv apache-tomcat-5.5.20.tar.gz -C /opt
      cd /opt
      mv apache-tomcat-5.5.20 tomcat
      cd tomcat/bin
      ./startup.sh

if you get the following tips,congratulation, you succeed.

Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/

open firefox, and type http://localhost:8080, and you will get the welcome homepage of tomcat.

Leave a Reply