After reading many tutorials on the Internet, I found that some of them cannot be implemented now, or the method is too complicated. so I tried to install the package myself, set the group, and spent a day in the afternoon, and finally got it done. Then I found that those online services seemed a bit incredible, so why is it so complicated to implement it? Well, let's start now!
Step 1: Download the following software: Apache2.0.53 for win32, Tomcat5.5.9 for win32,jakarta-tomcat-connectors-jk2.0.4-win32-apache2.0.49.zip. You can download the software from your website. If the implementation cannot be found, contact me, I will provide it to you.
Step 2: I don't need to talk about the installation method. Should you use JSP to install J2SDK at least? Add mod_jk2.so in modules to the modules folder under the Apache installation directory. Step 2 is complete.
Step 3: configure the configuration file first. Go to the Apache installation directory and find the conf folder. Use Notepad to create a file named worker2.properties. The content is as follows:
[Channel. socket: localhost: 8009] port = 8009 host = 127.0.0.1
[Ajp13: localhost: 8009] channel = channel. socket: localhost: 8009
[Uri:/examples/*] worker = ajp13: localhost: 8009
[Uri:/examples/*] is the examples folder in WebApp/root/of tomcat5. You can change the name by yourself, but don't forget to create a folder with the same name in it. after writing the above content, save and close notepad.
Configure the HTTPD. CONF file in the CONF file of APACHE, and add the following information at the end.
<IfModule mod_jk2.c> # Modules # Where to find the workers2.properties file # ----------------------------------------------- JkSet config. file conf/workers2.properties </IfModule>
LoadModule jk2_module "modules/mod_jk2.so"
Then save and exit. The last thing to do is to restart or start the Apache2 and Tomcat 2 servers, and enter http: // localhost/examples, if the file in Tomcat's webapp/root/examples/is displayed, our approach will be successful. hey, how is it, simple?
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.