J2SDK-1_4_1_02-S1STUDIO_CE-4U1-bin-windows.exe jakarta-tomcat-5.0.4.exe
Original: I took a Java project, when I was released, I couldn't find the latest apache2.0.0.0.47 and Tomcat5.0.4 integrated configuration, I took a long time Jakarta online information, and refer to the previous netizen's article I wrote this configuration document, for reference, welcome ax!
I. Software Preparation: Suppose you have a hardware and software environment that can run Win2000 Server 1.j2sdk1.4.1: to http://java.sun.com/j2se/ Download! (Note is the SDK version of Windows (All Languages, Including English) 2.Apache2.0.47: to http://httpd.apache.org/download.cgi/apache_2.0.47-win32-X86-NO_SRC.MSI download! 3.Tomcat5.0.4: to http://jakarta.apache.org/builds/jakarta- Tomcat / release / v5.0.4-alpha / bin / jakarta-tomcat-5.0.4.exe download! 4.MOD_JK.DLL: to http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/bin/win32/mod_jk_2.0.47.dll download! (Instead, due to mod_jk2-2.0.43.dll and apache2.0.47 configuration is not successful, now use mod_jk-2.0.47.dll instead)
Second, the installation of software: (This is omitted) three, the integrated configuration of Apache2.0.0.0.4 1.) Configure Apache2.0.471. Copy the mod_jk-2.0.47.dll to D: / Apache2 / Modules . 2. Set the home page file type: Open the httpd.conf under D: / Apache2 / Conf, find "DirectoryIndex", add index.jsp after index.html and save it, pay attention to each other. (Or set up step 3 below) 3. Set the virtual host, let Apache automatically control the resolution of HTML and JSP: Open D: /Apache2/conf/httpd.conf, add the following segment and save. # Set the connection between Apache and Tomcat, let Apache encountered the JSP file, put it in the background to Tomcat to process # usnamic calls to tomcatloadModule JK_Module Modules / Mod_jk_2.0.47.dlljkWorkersFile "D: / Tomcat 5.0 / conf / worker.properties "jklogfile" D: / tomcat 5.0 / logs / mod_jk2.log "JKLoglevel Info
# Setting the virtual host can not add
ServerAdmin admin@cld.cnDocumentRoot f: / StudioOnion / WEB_Project / shscServerName shsc.cld.cnDirectoryIndex index.html index.htm index.jspErrorLog logs / shsc-error_log.txtCustomLog logs / shsc-access_log.txt common # but it is sure to lower Add! ! ! Let Apache support to send jkmount / servlet / * ajp13 # to servlet, allowing Apache to transfer to servlet, to Tomcat resolution jkmount /*.jsp Ajp13 # Let Apache support to JSP transmission, to Tomcat resolution
2.) Configure tomcat5.0.41. New file workers.properties Note file suffix under D: / Tomcat 5.0.4 / confed, its contents are as follows: workers.tomcat_home = d: /tomcat5.0.4 # Let the mod_jk module know TomcatWorkers. Java_Home = D: /JDK1.4.1 # Let the Mod_JK module know the J2SDKPS = / Worker.List = ajp13 # module version, existing AJP14, do not modify the worker.ajp13.port = 8009 # work port, if you don't use it, don't modify the Worker .ajp13.host = localhost # This machine, if the above Apache host is not localhost, modify the corresponding modification worker.ajp13.type = ajp13 # type worker.ajp13.lbfactor = 1 # Agent number, no modification
1. Find the server.xml file under the CONF directory under the Tomcat directory and open it with Notepad. 2. Locate the following text in the server.xml file: 3. To be
Fourth, test: 1. Start Apache 2.0..47 and Tomcat5.0.4. 2. Enter http: // localhost /, with http: // localhost: 8080 / if the result is the same, and the apache2.0.47 is successful! ! ! Otherwise, come back (^_^) and I hope to help friends who like JSP. Reprint, please contact me: shuiaaa521@sina.com
__________________________________________________ now there is the latest Jakarta-Tomcat-5.0.12.exe, J2SDK1.4.2_06 I have passed the host machine test, Win2003 and Win2000