Integration of IIS 5 + Tomcat-4.1.27 + JK-2.0.4 on Window 2K

xiaoxiao2021-03-06  60

1. Software acquisition: IIS 5: Windows 2K installation CDs; JDK: Go to http://jakarta.apache.org/site/binIndex.cgi Download (I am 1.4.2); Tomcat: Go http: // Apache.bertwebcover.com/jakarta/tomcat-4/ Download; JK: Go to http://mirrors.mix5.com/apache/jakarta/tomcat-connectors/jk2/binaries/win32/ Download. 2. Install IIS, JDK and Tomcat, this is not to say. 3. Unzip the JK Package Jakarta-Tomcat-Connectors-jk2.0.0.4-win32-iis.zip that the obtained IIS version is extracted to the JK directory, copy JK / BIN / ISAPI_REDIRECTOR2.DLL and JK / BIN / Install4iis.js to Tomcat Under the bin / directory; copy jk / conf / workers2.properties.sample to Tomcat's conf / directory, and renamed for workers2.properties, jk / doc / directory is some explanation documentation, interested you can take a look. 4. Follow the JK's official documentation, enter the tomcat / bin directory in the CMD mode, execute the CScript install4iis.js command, but because of the Chinese IIS, it is not convenient to install this script, it is recommended to install it manually. Slight this step, please see the next step. 5. Open a notepad and build a JK.REG file, the content is as follows:

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE / SOFTWARE / Apache Software Foundation] [HKEY_LOCAL_MACHINE / SOFTWARE / Apache Software Foundation / Jakarta Isapi Redirector] [HKEY_LOCAL_MACHINE / SOFTWARE / Apache Software Foundation / Jakarta Isapi Redirector / 2.0] "serverRoot" = "E: / /Tomcat-4.1.27""Extensionuri"="/jakarta/isapi_redirector2.dll""workersfile"=e: / ///workers2.properties""loglevel"="debug "

Please change the above "E: Tomcat-4.1.27" to your own Tomcat installation directory, save, then double-click this file icon to import the content to the registry.

6. Everyone saw a "/jakarta/isapi_redirector2.dll" above, there must be doubt, don't worry. Open the IIS Manager, create a new virtual directory under the default website, named Jakarta, the absolute directory points to the directory where the ISAPI_Redirector2.dll file is stored, that is, the Tomcat / bin directory, then give the directory "executable" permission.

7. Open the Properties dialog of the default website, select the "ISAPI Filter" tab, see if there is a filter item named Jakarta in the filter, if not, add one, "Filter Name" is Jakarta, "Executable File" Point to isapi_redirector2.dll, which is Tomcat / Bin / Isapi_Redirector2.dll. 8. Finally, restart IIS and Tomcat. (Command line: Net Stop W3SVC, Tomcat / Bin / Shutdown.bat; Net Start W3SVC, Tomcat / Bin / Startup.bat)

9. Access to the browser

Http: // localhost / jkstatus will see JK's run status information, access

http: // localhost / example / will see the sample page of Tomcat, the integration is complete.

10. BTW, if you want to add more Tomcat virtual directories in IIS, add it in Workers2.properties.

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

New Post(0)