欢迎来到天天文库
浏览记录
ID:37177212
大小:33.01 KB
页数:6页
时间:2019-05-21
《apache整合tomcat配置教程》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、APACHE整合TOMCAT教程收藏APACHE整合TOMCAT教程1.主要软件准备下载JDK、Tomcat、Apacheserver、Tomcatconnector本教程中分别为jdk1.6、Tomcat6.0.13、apache_2.2.4-win32-x86-no_ssl、mod_jk-apache-2.2.4.so2.安装配置JDK、Tomcat,安装Apache这个网上教程很多,主要是设置一些环境变量本教程中
2、JAVA_HOME=D:ProgramFilesJavajdk1.6.0TOMCAT_HOME=D:ProgramFilesApacheSoftwareFoundationTomcat6.0APACHE_HOME=D:ProgramFilesApacheSoftwareFoundationApache2.2后面涉及到安装路径时用%XXX_HOME%代替3.把TomcatConnector拷贝到%APACHE_HOME%/models/目录在Apacehe主页上找到TomcatConne
3、ctors下载地址(http://tomcat.apache.org/download-connectors.cgi)目前最新的是mod_jk-apache-2.2.4.so,然后拷贝到%APACHE_HOME%/models/目录下4.在%APACHE_HOME%conf目录下新建workers.properties文件内容为:#以下为workers.propertie的内容worker.list=loadbalancer,server105,server106#Definethefirstnode...worker.server105.port=8009worker.server
4、105.host=127.0.0.1worker.server105.type=ajp13worker.server105.lbfactor=1#worker.server105.local_worker=1worker.server105.cachesize=100#Definethe2ndnode...worker.server106.port=8009worker.server106.host=127.0.0.1
5、worker.server106.type=ajp13worker.server106.lbfactor=1#worker.server106.local_worker=1worker.server106.cachesize=100#Nowwedefinetheload-balancingbehaviourworker.loadbalancer.type=lbworker.loadbalancer.balanced_w
6、orkers=server105,server106worker.loadbalancer.sticky_session=15.修改%APACHE_HOME%confhttpd.conf文件1)找到标签DirectoryIndexindex.html把DirectoryIndexindex.htm改为Directo
7、ryIndexindex.htmlindex.htmindex.jsp2)找到DocumentRoot变量##DocumentRoot:Thedirectoryoutofwhichyouwillserveyour#documents.Bydefault,allrequestsaretakenfromthisdirectory,but#symboli
此文档下载收益归作者所有