Integrated Apache Tomcat
Tomcat is Sun and Apache to develop JSP Server, support servlet and JSP, Tomcat itself can be used as a web server, when processing a static page, Tomcat is not as fast as Apache, is as configurable, strong. Apache is powerful and efficient as the most popular web server, but does not support JSP and servlets, so usually to integrate them, let Apache processes static pages, and hand over the dynamic page to Tomcat handling, Advantage. Apache can transfer the request to Tomcat by using the URL by loading the integrated module and settings in Apache.
To make Apache and Tomcat work, there must be a connector to link them. Connector has an important impact on performance, the convenience of configuration. Currently, there is rough JK1.x, JK2, and Mod_Webapp three Connector can be used. JK is relatively wide, JK2 is an improvement in JK1.x, which is relatively new. These three Connector's configuration methods are large, and must pay attention to when referring to the integration method of others. In addition, Tomcat is written with Java, so your system must have JDK or JRE. My OS is Solaris9, and the versions used are apache 2.0.47; Tomcat 5.0.27; JK2 2.0.4; J2SDK 1.4.2_05.
Start now:
Download the software you want to use, Apache, Tomcat, JK2 can be available on the official website of Apache
http://www.apache.org/dist/httpd/
http://www.apache.org/dist/jakarta/tomcat-connectors/jk2/source/
http://www.apache.org/dist/jakarta/tomcat-5//tomcat-5/
JDK is on the Sun's website. Http://www.sun.com The following is my download: httpd-2.0.47.tar.gz jakarta-tomcat-5.0.27.tar.gz jakarta-Tomcat-Connectors-JK2 -Src-current.tar.gz J2SDK-1_4_2_05-Solaris-sparc.tar.z (32bit, first install this to install this again 64bit) J2SDK-1_4_2_05-solaris-sparcv9.tar.z (last two is Solaris) Package, available under other systems, but you can download the corresponding version.) Installing Apache For the installation of Apache, there are many posts to introduce, pay attention to it when installing: must have --Nable-SO load SO modules, this is Integration to be used. Gzip -d httpd-2.0.47.tar.gz tar -xvf httpd-2.0.47./configure - with-layout = apache2 -prefix = / path to install Directory -enable-so makemake install is ok, Apache is installed. My installation directory is / usr / local / apahce2. Modify apache's http.conf serverName Name Ofyourver GROUP NOGROUP to enter / usr / local / apache2 / bin execution. / apachectl start Start Apache (./apachectl stop) If successful, you can see the APCHE's default home page http: // serverip (httpd -l can list the installed module). JDK JAVA is Sun development It is pre-installed Java's operating environment on his own OS. Java -Version can see the Java version number. Soaris9 is 1.4.1_01a uncompress J2SDK-1_4_2_05-Solaris-sparc.tar.z Tar XVF J2SDK-1_4_2_05 -Solaris-sparc.tar After decompression, get a few SUNW's files, put them in a directory, first delete the previous Java package! Pkgrm sunwj 3DMO SUNWJ3MAN SUNWJ3DEV SUNWJ3RT PKGRM SUNWLJ3DV SUNWLJ3RT (If any, Pkginfo | GREP SUNWJ3 View) Add new package, pkgadd -d ./ (Several sunw directories that have just been decompressed) to install 64bit package, the same Uncompress J2SDK-1_4_2_05 -Solaris-sparcv9.tar.z TAR XVF J2SDK-1_4_2_05-Solaris-sparcv9.tar pkgadd -d ./ Ok, installed. Java -Version, see the version number! Detailed description, refer to the document on the Sun website ! Install Tomcat Before installing Tomcat, set two environment variables: java_home = / usr / j2se classpath = / usr / j2se / lib: / usr / j2se / jre / lib (this is for Solaris9, Solaris8 / USR / Java1 .2;