The deployment environment is win2008r2_x64, IIS7 and jdk1.7.0_51,tomcat7.0.59
one. Turn off the IE Enhanced Security configuration in Windows2008.
The Server Manager----Configure IE ESC----Both administrators and users choose to disable it.
two. IIS installation
Installation:
1. Right click on "Computer", select "Admin" option in pop-up menu, the left interface of Server Manager
2. Click on the "Role" option, as shown below:
3. Click the "Add Role" button, pop up the following interface
4. Select Web Server (IIS) and application server in the Roles list and click Next
5. Click the "Add Required Features" button, and then do the next steps:
Next
6. After the installation is complete, click the "Close" button in the image below to complete the installation of the Web server.
7. Verify that IIS is working in a normal browser enter http://localhost or not
Three. Install jdk1.7.0_51
Download jdk1.7.0_51. The installation process is omitted, the direct next step, the default path.
Download Address: http://down.51cto.com/data/2054127
Environment variables are configured this way after the JDK is installed in the Windows environment:
The first is the variable name, followed by the variable value. (Java_home and Classpath need to be new, path not required)
Java_home:c:\program files\java\jdk1.7.0_51
Path:%java_home%/bin;%java_home%/jre/bin
CLASSPATH:.; %java_home%/lib/dt.jar;%java_home%/lib/tools.jar
Verification: Java-version
Four. Install Tomcat 7.0.59
Download TOMCAT7, direct download decompression on it, work path for d:/tomcat7/
Download Address: http://down.51cto.com/data/2054129
Five. IIS and Tomcat consolidation
Create a registry Tomcat_iis.reg file.
Download Address: http://down.51cto.com/data/2054131
Windows Registry Editor Version 5.00
[Hkey_local_machine\software\wow6432node\apachesoftware foundation\jakarta Isapi redirector\1.0]
"Extension_uri" = "/jakarta/isapi_redirect.dll"
"Log_file" = "D://tomcat7//logs"
"Log_level" = "Debug"
"Tomcat_start" = "D://tomcat7//bin//tomcat.batstart"
"Tomcat_stop" = "D://tomcat7//bin//tomcat.batstop"
"Worker_file" = "d://tomcat7//conf//workers.properties"
"Worker_mount_file" = "d://tomcat7//conf//uriworkermap.properties"
Note: After importing the registry, be sure to use Regedit to open the registry to see if the import was successful. Whether the registry contains the above items and string values.
There are many times when you are prompted for an import success but not in the registry
2. Under the Tomcat installation directory under the Conf folder to establish two files
Download Address: http://down.51cto.com/data/2054132
File 1:workers.properties
WORKERS.TOMCAT_HOME=D:\\TOMCAT7
workers.java_home=c:\\programfiles\\java\\jdk1.6.0_43
Ps=\
Worker.list=ajp13
worker.ajp13.port=8009
Worker.ajp13.host=localhost
Worker.ajp13.type=ajp13
Worker.ajp13.lbfactor=1
file 2:uriworkermap.properties
/*.jsp=ajp13
/*.do=ajp13
/services*=ajp13
/servlet*=ajp13
/researchreport/*=ajp13
/investerminal/*=ajp13
/researchreport2/*=ajp13
/issuu/*=ajp13
/newinvesterminal/*=ajp13
/newweb/*=ajp13
/userrangeserver/*=ajp13
/root/*=ajp13
/docs/*=ajp13
/examples/*=ajp13
/host-manager/*=ajp13
/manager/*=ajp13
3. Copy Isapi_redirect.dll (consolidated plugin) to the Tomcat installation directory under Conf folder
Download Address: http://down.51cto.com/data/2054133
4. Open IIS7.5, click on the computer name on the left side of the "ISAPI and CGI Restrictions" in IIS Manager, add the path selected as the Isapi_redirect.dll of the Conf folder under the Tomcat installation directory, and set "Allow extended paths to execute". Descriptive name desirable JSP
5. Then click Default Web Site, select the ISAPI filter, and right-click to add filter, name is Jakarta, executable file Select the directory under the Tomcat folder Isapi_redirect.dll
6. On the default Web site, right-click "Add Virtual directory", alias Jakarta (must be Jakarta name, name must be the same as the name of the registry "Extension_uri"), the path points to the Tomcat folder under the directory, The directory where Isapi_redirect.dll is located.
7. Click on the virtual directory Jakarta, double-click "Processor mapping", rightmost (the third column inside) Select "Edit feature Permissions ..." All permissions (Execute permission) are selected.
8. On the default Web site, double-click Handler mappings, right-click Add script map, request path write *.jsp, executable file Select the Isapi_redirect.dll folder under the Tomcat installation directory. Name casually write, such as JSP.
9. Verify Access http://127.0.0.1/index.jsp.
Rationale: Front-end IIS is primarily responsible for static page requests, and dynamic requests are forwarded to Tomcat (backend) for processing via a consolidated plug-in.
Six. problems encountered in ***********************************
During the deployment process, I encountered several problems, as follows:
Integration of Plug-ins Isapi_redirect.dll directory must be and workers.properties, Uriworkermap.properties put together, all put into Tomcat's Conf directory, otherwise it will complain (404 errors).
2. When you create a new registry file, note that the 32-bit system and the 64-bit system path are different, and you should pay special attention to the fact that after you import the registry, verify that the import is successful.
32-bit system registry path:
Hkey_local_machine\software\apache SOFTWARE Foundation\jakarta Isapi redirector\1.0
64-bit system registry path:
Hkey_local_machine\software\wow6432node\apachesoftware Foundation\jakarta Isapi redirector\1.0