Installing Apache Tomcat 6.18 on Ubuntu 9.04Installare Apache Tomcat 6.18 su Ubuntu 9.04

Here the procedure I used to install Apache Tomcat on Ubuntu Jaunty published  in  Xiaoyu‘s Blog:

Require: JDK 6 installed

  1. Use the mirror Apache Tomcat 6.18 to download tar.gz’s file
  2. Unzip with the command ‘sudo tar xvzf apache-tomcat-6.0.18.tar.gz’
  3. Open a bash and create the directory /usr/local/tomcat with the ‘sudo mkdir  /usr/local/tomcat’
  4. Move the contents of compressed file in the new directory ’sudo mv apache-tomcat-6.0.14 /usr/local/tomcat’
  5. Open a new termnal and run the command ‘sudo nautilus’
  6. Run the command ‘gedit /usr/local/tomat/bin/shartup.sh
  7. Add at the line 7 ‘export JAVA_HOME=/usr/lib/jvm/java-6-sun’
  8. Save and close
  9. Automatise startup service with the  script and save it in ‘/etc/init.d/’
  10. Start the service from the terminal using  ’sudo /etc/init.d/tomcat restart’, for stop it  ’sudo /etc/init.d/tomcat stop

I have experience some proble with the server.xml, solved changing “shutdown” port parameter from 8005 to 8006.Per installare Apache Tomcat su Ubuntu Jaunty ho seguito parte della procedura pubblicata dal Blog Xiaoyu:

Requisito: JDK 6 installata

  1. Scaricare dal mirror Apache Tomcat 6.18 il file tar.gz
  2. Decomprimere il file ad esempio con il comando ‘sudo tar xvzf apache-tomcat-6.0.xx.tar.gz’
  3. Aprire un terminale e creare la cartella /usr/local/tomcat con il comando ‘sudo mkdir  /usr/local/tomcat’
  4. Spostare il contenuto del file compresso nella directory appena creata ’sudo mv apache-tomcat-6.0.14 /usr/local/tomcat’
  5. Aprire un terminale nuovo lanciare il comando ‘sudo nautilus’
  6. Attraverso l’splora risorse aprire il file  ‘/usr/local/tomat/bin/shartup.sh’ con gedit
  7. Agiungere alla linea 7 la stringa ‘export JAVA_HOME=/usr/lib/jvm/java-6-sun’
  8. Salvare e chiudere l’esplora risorse
  9. Per avere automaticamente lo startup del servizio ho usato il suo script copiandolo in ‘/etc/init.d/’
  10. Per startare il servizio da terminale usare  ’sudo /etc/init.d/tomcat restart’, per fermarlo  ’sudo /etc/init.d/tomcat stop

N.B. ho avuto qualche problema con il file server.xml risolto cambiando la porta dello “shutdown” da 8005 a 8006.

Lascia un commento