Apache 2.0.48 + Tomcat 5.0.16

zhaozj2021-02-16  148

First, prepare (try to find the same package as the following version, because other packs I have not tested):

Because the online is easy to find, there is no download address here.

Apache_2.0.48-win32-x86-no_ssl.exe

JDK1.4_03.exe

JAKARTA-TOMCAT-5.0.16.EXE

MOD_JK1.2.4.DLL (this stuff is not easy to find, so I bring one for everyone.)

Second, the installation:

1, installation (for convenience, below is my own installation directory)

Apache (C: / Program Files / Apach2),

JDK (D: /Myweb/JDK1.4),

Tomcat (C: / Program Files / Tomcat).

It's okay all the way, there is nothing else.

2, environment variable:

Class_path:.; D: /Myweb/jdk/lib/dt.jar; d: /myweb/jdk/lib/tools.jar; (Remember the front ".")

Java_Home: D: / MyWeb / JDK

PATH: D: / MYWEB / JDK / IN;

Tomcat_Home: C: / Program Files / Tomcat

3, set Apache.

Copy MOD_JK to $ apache_home / modules. (Apache_home refers to the installation directory of Apache, the same.)

Open $ apache_home / conf / httpd.conf

Add below:

LoadModule JK_Module Modules / MOD_JK.DLL

JKWorkersfile "C: / Program Files / Tomcat / Conf / Workers.properties"

JKMOUNT / Servlet / * ajp13

JKMount /*.jsp Ajp13

Include "C: / Program files / tomcat / conf / mod_jk.conf"

4, set Tomcat.

Copy mod_jk.conf to $ TOMCAT_HOME / CONF.

Copy Workers.properties to $ Tomcat_Home / Conf.

Note: The extension of the two files above. The port 80, Tomcat port 8080.

5, set the virtual directory (for easy use).

Create folder D: / jsptest

Open $ apache_home / conf / httpd.conf

Add below:

Alias ​​/ JSPTEST "D: / Jsptest"

Options Indexes Followsymlinks MultiViews

ALLOWOVERRIDE NONE

ORDER ALOW, DENY

ALLOW FROM ALL

Open $ TOMCAT_HOME / Conf / Server.xml

Add below before:

Then restart Apache and Tomcat!

6, test:

Test.jsp Copy to D: / JSPTest

http://jerry/jsptest/test.jsp

(Jerry is the name of my computer, you can use your computer name instead. Localhost seems to be no, if you modify it, use localhost if you can write, tell me, ^ _ ^ join2002t163.com: at = @)

shown as:

Today is: 2004-2-26 11:03:41

Congratulations, Apache Tomcat is successful!

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

New Post(0)