I have referenced a lot of information on the internet and found that most of them have more or less minor problems. Now I have posted my integration process for your reference.
I. Preparation
The following procedure is required:
J2sdk1.4.2 _ 01, apache-2.0.47, jakarta-tomcat-4.1.27, and mod_jk2-2.0.43.dll
The above programs can be downloaded from sun and apache.org.
J2sdk1.4.2 _ 01: http://java.sun.com/j2se/1.4.2/download.htmlselect J2SE v 1.4.2 _ 01 SDK
Apache-2.0.47: http://apache.linuxforum.net/dist/httpd/binaries/win32/apache_2.0.47-win32-x86-no_ssl.exe
Tomcat-4.1.27: http://apache.linuxforum.net/dist/jakarta/tomcat-4/binaries/jakarta-tomcat-4.1.27.exe
Mod_jk2-2.0.43.dll: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/bin/win32/mod_jk2-2.0.43.dll
Note the downloaded jk2 File name: mod_jk2-2.0.43.dll, and there is a mod_jk-2.0.4x.dll online, which is jk instead of jk2
II. Installation
Assume j2sdk1.4.2 _ 01 is installed under D: j2sdk1.4.2 _ 01, and [Java_install_dir] is used to represent this path.
Install apache-2.0.47 on D: Program FilesApache GroupApache2. Use [Apache_install_dir] to represent this path. The service port is 80.
Jakarta-tomcat-4.1.27 installed to D: Program FilesApache GroupTomcat 4.1, representing this path with [Tomcat_install_dir], service port 8080
Add JAVA_HOME and TOMCAT_HOME to the system environment variables as the preceding paths, modify CLASS_PATH, and add % JAVA_HOME % lib; % TOMCAT_HOME % in;
During installation, Apache and Tomcat are both set to run as backend services.
III. Configuration
1. Install mod_jk2-2.0.43.dll in Apache2
Copy mod_jk2-2.0.43.dll to the [Apache_install_dir]/modules Directory
Edit the [Apache_install_dir]/conf/httpd. conf configuration file and add the following line at the end of the file:
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
2. Configure Apache
[Create the workers2.properties file in the Apache_install_dir]/conf Directory. The content is as follows:
# Define the comunication channel
[Channel. jni: jni]
Info = The jni channel, used if tomcat is started inprocess
# Define the parameters for the Java Virtual Machine
[Vm:]
Info = Parameters used to load a JVM in the server process
OPT =-Djava. class. path = [Tomcat_install_dir] inomcat-jni.jar; [Tomcat_install_dir] inomcat. jar
OPT =-Dtomcat. home = [Tomcat_install_dir]
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service