Super simple integration apache2.0 + tomcat5.0 + jdk1.4

xiaoxiao2021-03-06  74

At present, online methods are integrated with a mod_jk2.dll file, but I can't find it to the official website, but I found different versions of MOD_JK2.SO. http://apache.linuxforum.net/dist/jakarta/tomcat-connectors/jk2/binaries/win32/ (Jakarta-Tomcat-Connectors-jk2.0.4-win32-apore) although mod_jk2.so help Document, but e Wen does not understand :) So I decided to use the mod_jk2.dll method to download MOD_JK2.DLL in other websites. As a result, it took a night, using online nearly n methods to end!!! Maybe all versions. In this morning, I used MOD_JK2.SO to do it. Steps: First, install each package and configure environment variables. Confirm that the port of Tomcat5 servers is 8080, it is best to have a virtual directory.

When installing APAHE HTTP Server 2.0, port is best: for all users, onport80 - recommented 2, copy mod_jk2.so to [Install Disk:] / Apache2 / MODULES directory, open [installation ":] / apache2 the /conf/httpd.conf AddDefaultCharset ISO-8859-1 to LoadModule jk2_module modules / mod_jk2.so AddDefaultCharset GB2312 DefaultLanguage GB2312 AddLanguage zh-cn .cn make automatic loading and support Chinese mod_jk2.so four o'clock server startup, installed in [ Disc: / Apache2 / conf directory New WORKERS2.PROPERTIES file content is as follows: [SHM] file = $ {serverroot} /logs/shm.file size = 1048576 # Example Socket Channel, Override port and host. [Channel.socket " : localhost: 8009] Port = 8009 Host = 127.0.0.1 # define the worker [AJP13: localhost: 8019] channel: 8009 # uri mapping [uri: / *] worker = ajp13: localhost: 8009 5 Start Tomcat5 IE Enter http: // localhost: 8080 test Success or http: // localhost: 8080 / (virtual directory set in Tomact) If successfully completed 99.9% RESTART, start Apache Service. In IE Enter http: // localhost / should display http: // localhost: 8080 / page testing is integrated successfully: Enter http: // localhost / Or http: // localhost / (virtual directory set in Tomact) See if it is the same as the effect of http: // localhost: 8080 or http: // localhost: 8080 / (virtual directory set in tomct)掂 !!! Summary: Actually, the problem is to set the [URI: / *] set in the fourth step to set the virtual directory such as: [URI: / jsptest / *] and then configure virtual path in httpd.conf: increase : Alias ​​/ JSPTEST / "C: / JSPTEST /" Options INDEXES MULTIVIEWS ALOWOVERRIDE NONE ORDER ALLOW, DENY Allow from all Testing my method Added to add the above path (premise me It's not good to use other methods. So when you are configured in the fourth step: [URI: / *] can not be changed ~~~~ I would like to ask you the heroes, can you get the fifth step? Is it successful? ?? In order to confirm that you can get The effect of the five steps (now I can only say this, because I don't know if I really integrate success now?), After I finished writing the article,

转载请注明原文地址:https://www.9cbs.com/read-121465.html

New Post(0)