Table of Contents |
---|
...
Let's take a brief look at how to install TOMCAT. Let's install the TOMCAT 7 product.
...
Go to http://tomcat.apache.org/download-70.cgi site and download the recent recently released TOMCAT binary file (apache-tomcat-7.0.46.tar.gz).
Installing TOMCAT
...
Code Block |
---|
[tomcat@dev ~]$ vi .bash_profile export CATALINA_HOME=/app/was/tomcat7 export JAVA_HOME=/app/java/jdk1.6 export PATH=$CATALINA_HOME/bin:$JAVA_HOME/bin:$PATH [tomcat@dev ~]$ . .bash_profile |
<Example of Linux configuraiton>
Running TOMCAT
Execute the following command to start the TOMCAT.
Code Block |
---|
$ catalina.sh start (windows : catalina start) [tomcat@dev ~]$ catalina.sh start Using CATALINA_BASE: /app/was/tomcat7 Using CATALINA_HOME: /app/was/tomcat7 Using CATALINA_TMPDIR: /app/was/tomcat7/temp Using JRE_HOME: /app/java/jdk1.6 Using CLASSPATH: /app/was/tomcat7/bin/bootstrap.jar:/app/was/tomcat7/bin/tomcat-juli.jar Tomcat started. [tomcat@dev ~]$ |
Shutting TOMCAT down
Execute the followign following command to shutdown TOMCAT.
Code Block |
---|
$ catalina.sh stop (windows : catalina stop) [tomcat@dev ~]$ catalina.sh stop Using CATALINA_BASE: /app/was/tomcat7 Using CATALINA_HOME: /app/was/tomcat7 Using CATALINA_TMPDIR: /app/was/tomcat7/temp Using JRE_HOME: /app/java/jdk1.6 Using CLASSPATH: /app/was/tomcat7/bin/bootstrap.jar:/app/was/tomcat7/bin/tomcat-juli.jar [tomcat@dev ~]$ |
...