Integrated configuration process for IIS 6.0+tomcat Server environments in Windows systems

Source: Internet
Author: User

Iis6.0+tomcat Integration

1. Prepare for work first

Windows IIS 6.0

Apache-tomcat-7.0.26.exe

Tomcat-connectors-1.2.33-windows-i386-iis.zip

Jdk-7u1-windows-7.0.exe

The software is ready to download, so let's start installing the software.

1. Install Java First

Install Java into the specified directory according to your hobby. I put it in D:/java.

Once installed, there will be a JRE directory. In fact, the main use of this directory, now start to set the Java environment variables.

Java Environment variables:

Open, My Computer, properties, advanced environment variables

You will see a user variable and a system variable, and note that there is no reference to the system variables defined in the user variable.

(1) First of all, to the Java program can be used anywhere, you need to set the system environment variables for Java

You will see a Administrator environment variable window and a System environment variable window.

1. Administrator setting Java environment variables

First build a Java_home variable name, the path to the JDK (such as JDK installed in d:/java/jdk_1.7.x)

java_home=d:/java/jdk_1.7.x

Then set up a classpath

Classpath=.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar

Note: There is a point in front of the path, this point is necessary, the following%java_home% is referring to the previous path, \lib\dt.jar and \lib\tools.jar to and the installation path of the file to correspond.

In the end, set a path

Path=%java_home%\bin;%java_home%\jre\bin

So the administrator Java environment variable is set up, test

Run->cmd->java Javac java-version see if there is any information coming out, if there is a description of success, if not, the description is not successful.

2. Open My Computer, properties---environment variable---settings (set Java environment variable under system)

First build a java_home with the above set

And then set up a classpath same as above

In the end, set a path

Note: The last path system variable is inside, append the%java_home%\bin;%java_home%\jre\bin to the back of the line.

Now to test whether there is success.

There are many articles on the web that set up the Java environment variables, I have seen a lot of it does not indicate where should be set, how to set. After my tests, I've come to the conclusion of how to set up

Windows environment variables are divided into two of the user's system variables are system variables, the user's system variables only this user login to take effect, system environment variables

It is not the same, no matter which, the above settings can only be set in an environment, can not be set in the user environment, and then to the system environment to reference, it will not be found. So

To set can only be set in one environment, if there is a variable name appended to the back, with, separated, not a new one.

To this Java is configured, then the operation is not related to Java.

2. Install Tomcat

Follow the prompts to install Tomcat so that Tomcat is ready to install.

3. Configuring the Tomcat Connector

(1). First build a Jakarta directory under the Tomcat directory, which I built under Tomcat/bin/jakarta

Then create the workers.properties, uriworkermap.properties these two files

Workers.properties content is:

workers.tomcat_home=d:\tomcat_7

Workers.java_home=d:\java\jdk1.7.0_01

Ps=\

Worker.list=ajp13

worker.ajp13.port=8009

Worker.ajp13.host=localhost

Woker.ajp13.type=ajp13

Worker.ajp13.lbfactor=1

The path in this is set according to your software installation location.

Uriworkermap.properties content is:

/*.jsp=ajp13

/*=ajp13

And then create a new A.reg name that you can pick up.

A.reg content is:
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\1.0]

"Extension_uri" = "/jakarta/isapi_redirect.dll"

"Worker_file" = "d:\\tomcat_7\\bin\\jakarta\\conf\\workers.properties"

"Worker_mount_file" = "d:\\tomcat_7\\bin\\jakarta\\conf\\uriworkermap.properties"

"Log_file" = "D:\\tomcat_7\\bin\\jakarta\\logs\\isapi.log"

"Log_level" = "Debug"

This is also written according to your own software path. Then run the A.reg file. Then look in the registration table to see if there is a build.

Finally, the tomcat-connectors-1.2.33-windows-i386-iis.zip inside of the isapi_redirect.dll extracted into the Jakarta inside to build

Okay, here's the Tomcat connector configuration.

Now to consolidate IIS and Tomcat.

4. Consolidating IIS and Tomcat

Installed IIS can be configured directly, if not installed now to install

Before you configure it, make sure that IIS and Tomcat are all normal.

OK now let's configure IIS so that he can support JSP.

(1) Create a new virtual host, or directly with the default website (here I am the new host www)

Add ISAPI filters, properties

Then configure the home directory

Add an ISAPI extension

Then add a default document inside the document

Finally add a Jakarta to the Web service extension and enable it

Note: The ISAPI filter is activated after the visit, and the newly created one does not have the green up arrow.

By this time IIS and Tomcat have been integrated, and later optimizations are being further configured.

Integrated configuration process for IIS 6.0+tomcat Server environments in Windows systems

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.