Friday, June 1, 2012

step by step tomcat on ETPM App Server

ok, i know it has been overwritten, but i had to dump it somewhere and blog is the best place to leave my ETPM snail wax! :)


step 01: [amadm@etpm-hostname ~]$ cd /opt/tomapp  --- tomcat installation base directory

step 02: download latest tomcat release from http://tomcat.apache.org/download-70.cgi

step 03: copy apache-tomcat-7.0.27.tar.gz to /opt/tomapp

step 04: verify if downloaded file is correct.

[amadm@etpm-hostname  ~]$ md5sum apache-tomcat-7.0.27.tar.gz
486769ec1094fb45f000d30f237b3643  apache-tomcat-7.0.27.tar.gz

now compare the value with http://www.apache.org/dist/tomcat/tomcat-7/v7.0.27/bin/apache-tomcat-7.0.27.tar.gz.md5
if both values are same, it mean download is correct.

step 05: [amadm@etpm-hostname  ~]$ tar xvf apache-tomcat-7.0.27.tar.gz

step 06: create link:

[amadm@etpm-hostname  ~]$ ln -s apache-tomcat-7.0.27 apache-tomcat

step 07: start & stop tomcat

[amadm@etpm-hostname bin]$ cd /opt/tomapp/apache-tomcat/bin/
[amadm@etpm-hostname bin]$ ./startup.sh
[amadm@etpm-hostname bin]$ ./shutdown.sh

Cheers

No comments: