Sunday, February 2, 2014

How to Install Tomcat 7

oracle@solaris:~$ sudo mkdir /opt/tomcat7
oracle@solaris:~$ sudo chown oracle:dba /opt/tomcat7
oracle@solaris:~$ unzip apache-tomcat-7.0.50.zip -d /opt/tomcat7

oracle@solaris:/opt/tomcat7/apache-tomcat-7.0.50/bin$ ./startup.sh
Using CATALINA_BASE:   /opt/tomcat7/apache-tomcat-7.0.50
Using CATALINA_HOME:   /opt/tomcat7/apache-tomcat-7.0.50
Using CATALINA_TMPDIR: /opt/tomcat7/apache-tomcat-7.0.50/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/tomcat7/apache-tomcat-7.0.50/bin/bootstrap.jar:/opt/tomcat7/apache-tomcat-7.0.50/bin/tomcat-juli.jar

oracle@solaris/opt/tomcat7/apache-tomcat-7.0.50/bin$ ps -ef|grep tomcat7
  oracle  4360     1   0 23:39:06 pts/1       0:03 /usr/bin/java -Djava.util.logging.config.file=/opt/tomcat7/apache-tomcat-7.0.50
 

JDK6 and above is required to run Tomcat7. Refer to here below on installation of JDK7.

http://www.dbaglobe.com/2014/02/install-jdk-in-solaris-11-using-pkg.html

image

No comments:

Post a Comment