Sun Cluster Data Service for Apache Tomcat Guide for Solaris OS

ProcedureExample: Installing the Apache Tomcat Software on Local Storage

These steps illustrate how to install the Apache Tomcat software in the shared storage. As long as only one node is mentioned it needs to be the node where your resource group is online.

  1. Log in to the zone on both nodes.


    phys-schost-1# zlogin clu1
    phys-schost-2# zlogin clu1
    
  2. Add the tomcatgroup and user.


    zone-1# groupadd -g 1000 tomcat
    zone-1# useradd -g 1000 -d /global/mnt3/tomcat -m -s /bin/ksh tomcat
    zone-2# groupadd -g 1000 tomcat
    zone-2# useradd -g 1000 -d /global/mnt3/tomcat -m -s /bin/ksh tomcat
    
  3. Install the Apache Tomcat binaries.


    zone-1# su - tomcat
    zone-1$ gzcat apache-tomcat-5.5.17.tar.gz|tar xvf -
    zone-1$ gzcat apache-tomcat-5.5.17-compat.tar.gz|tar xvf -
    
  4. Create your environment script /global/mnt3/tomcat/env.kshwith the following contents.


    cat env.ksh 
    #!/usr/bin/ksh
    JAVA_HOMME=/usr/j2se
    CATALINA_HOME=/global/mnt3/tomcat/apache-tomcat-5.5.17
    export JAVA_HOME CATALINA_HOME
  5. Leave the zone.