Integrated Apache 2.0.48 + Tomcat 5.0.19 on WinXP Pro

zhaozj2021-02-17  47

Integrated Apache 2.0.48 Tomcat 5.0.19 on WinXP Pro

Software Preparation: Apache 2.0.48 http://apache.linuxForum.Net/dist/httpd/binaries/win32/apache_2.0.48-win32-x86-no_ssl.msi Tomcat 5.0.19 http://apache.linuxForum.NET/ Dist / jakarta / tomcat-5 / v5.0.19 / bin / jakarta-tomcat-5.0.19.zip jk2 http://apache.linux process-unic.com/jakarta/tomcat-connectors/jk2/binaries/win32/jakarta- Tomcat-Connectors-jk2.0.2-win32-apache2.0.43.zip (Mod_jk * .dll in the package is named mod_jk2.dll)

Install: apache in d: / apache2048 tomcat in d: / tomcat and copy mod_jk2.dll to d: / apache2048 / apache2 / modules directory

1. Edit D: /Apache2048/apache2/conf/httpd.conf file, plus loadModule jk2_module modules / mod_jk2.dll

2. Note out # ADDDEFAULTCHARSET ISO-8859-1

3. Reform to the end of the file

ServerAdmin Webmaster@dummy-host.example.com

DocumentRoot "D: / Tomcat / WebApps"

ServerName Dummy-Host.example.com

ErrorLog logs / dummy-host.example.com-error_log

Customlog logs / dummy-host.example.com-access_log Common

4. D: / apache2048 / apache2 / conf directory plus a workers2.properties file: [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 = CHANNEL.SOCKET: Localhost: 8009

# Uri mapping

[URI: / *]

Worker = ajp13: Localhost: 8009

OK! Start Apache and Tomcat, http: // localhost is the same as HTTP: // localhost: 8080: Most of them are referring to others, so they are not original.

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

New Post(0)