1 All software downloads http://down.51cto.com/data/2219130
(Note that IIS is not installed)
2 Installing the JDK prompts for the installation path the first time for the JDK second time for the JRE
The installation path is C:/JDK and C:/JRE
3 Configuring the JDK environment variables computer Properties-Advanced system settings-environment variables
system variables → new java_home variable path is C:/JDK
system variable → look for Path variable → edit if no later; You need to add %java_home%\bin;%java_home%\jre\bin;
4 System variables → new CLASSPATH variable .; %java_home%\lib;%java_home%\lib\tools.jar attention to the front of the '. '
5 cmd running java-version and javac with hints you can
6 Installing Apache
Always the next installation path is C:\apache
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/6F/wKiom1dBammCYgUUAACQdZ9IpZg866.png "title=" 360 Feedback 16550428384726.png "alt=" Wkiom1dbammcyguuaacqdz9ipzg866.png "/>
(external domain name)
7 Installing Tomcat
1 Options Select All
2 ports
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/6F/wKiom1dBaxXiBCJCAACI7fELYLs334.png "title=" 360 Feedback 16300509292546.png "alt=" Wkiom1dbaxxibcjcaaci7felyls334.png "/>
3 Select the JRE path (automatic)
8 Apache connection to Tomcat
1 Copy the module mod_jk.so to the C:\apache\modules
2 Copy the following to C:\apache\conf\httpd.conf
LoadModule Jk_module modules\mod_jk.so
Jkworkersfile "C:\apache\conf\workers.properties"
Jklogfile "C:\tomcat\Tomcat 6.0\logs\mod_jk2.log"
Jkloglevel Info
jkmount/servlet/* ajp13
#让Apache支持对servlet传送, used for Tomcat parsing
Jkmount/*.jsp ajp13
#让Apache支持对jsp传送, used for Tomcat parsing
Jkmount/*.do ajp13
#让Apache支持对. Do transfer for Tomcat parsing
Jkmount/*.htm ajp13
3 Create a file in C:\apache\conf workers.properties (note the suffix is. properties) Copy the following
Workers.tomcat_home=c:\tomcat\tomcat 6.0
Workers.java_home=c:\jre #让mod_jk模块知道jre的位置
Ps=\
WORKER.LIST=AJP13 #模块版本
worker.ajp13.port=8009 #工作端口, do not modify if not occupied
Worker.ajp13.host=localhost #本机, if the above Apache host is not localhost, make the corresponding modification
WORKER.AJP13.TYPE=AJP13 #类型
Worker.ajp13.lbfactor=1 #代理数, no modification
9 Modifying the Apache home page directory
1 Modify C:\apache\conf\httpd.conf in DocumentRoot "C:/wwwroot" (The purpose is to change to C drive Wwwroot)
2 Simultaneous modification
<ifmodule dir_module>
DirectoryIndex index.html index.jsp
</IfModule> Support JSP home page
3 modifications
<directory/>
Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from all
</Directory>
Delete the latter two actions:
<directory/>
Options FollowSymLinks
AllowOverride None
</Directory>
10 Modify Tomcat's directory edit C:\tomcat\Tomcat 6.0\conf\server.xml add in
<context path= "" docbase= "C:\wwwroot" reloadable= "true" crosscontext= "true"/>
11 Create a folder in the C drive wwwroot
Create index.html
<HTML>
<HEAD>
<TITLE>JSP test Page---helloworld!</title>
</HEAD>
<BODY>
<a href= "index.jsp" >aaaa</a>
</BODY>
</HTML>
Create index.jsp
<HTML>
<HEAD>
<TITLE>JSP test Page---helloworld!</title>
</HEAD>
<BODY>
<%
Out.println ("
%>
</BODY>
</HTML>
12 Restart Apache Tomcat access http://localhost Click AAA appears 650) this.width=650; "Src=" http://s2.51cto.com/wyfs02/M01/80/6D/ Wkiol1dbcslrlknyaaawwwxyfam339.png "title=" 360 feedback 165504277712486.png "alt=" wkiol1dbcslrlknyaaawwwxyfam339.png "/ >
(The index.html file can also be deleted because httpd.conf that previously configured Apache supports index.jsp home page)
Success
Note If clicking on AAA appears on the default page of Tomcat, delete C:\tomcat\Tomcat 6.0\work\ The following content restart service
This article is from the "Itcain" blog, make sure to keep this source http://521kun.blog.51cto.com/9397206/1775908
Detailed configuration of Apache+tomcat under Winserver08