tomcat的JK和JK2

现在又开始配置JK2,想将Tomcat和apache,但Tomcat上已经不支持对于JK2的开发了,详情请看:

Apache-Tomcat mod_jk2 aka JK2

15 November - JK2 is officially unsupported

JK2 has been put in maintainer mode and no further development will take place. The reason for shutting down JK2 development was the lack of developers interest. Other reason was lack of users interest in adopting JK2, caused by configuration complexity when compared to JK.

The latest official JK2 release is 2.0.4.

JK2 will have it's successor within core Apache2.1/2.2 distribution. We have developed new proxy_ajp that is an addition to the mod_proxy and uses Tomcat's AJP protocol stack. It is developped in httpd-2.1 and integrated in it. We have also developed a new proxy_balancer module for load balancing http and ajp protocol stacks.

JK will be fully supported for all other web servers. The next JK release is planned for the end of November. Lots of code from JK2 has been ported to JK

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
软件环境:Window server 2003+ IIS6.0 + Tomcat6.0 + JK2 整了大半天,不过直得整合的好处就不说了 1.导入注册表 iis+tomcat.reg 文件说明 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] //修改成你的tomcat主目录 "serverRoot"="D:/Tomcat 6.0" //不需要修改跟后面设置的虚拟目录一至 "extensionUri"="/jakarta/isapi_redirector2.dll" //第二步中复制的属性文件 "workersFile"="D:/Tomcat 6.0/conf/workers2.properties" "logLevel"="DEBUG" 2.Copy 文件 isapi_redirector2.dll jk2.properties workers2.properties 到tomcat安装目录下的conf文件夹中 文件说明jk2.properties: request.tomcatAuthentication=false //默认设置 文件说明workers2.properties: [shm] # 日志 file="d:/Tomcat 6.0/logs/jk2.log" # 文件大小 size=1048576 # 如果tomcat,iis在一台服务器中时,不需要修改配置 # 默认端口8009 [channel.socket:localhost:8009] port=8009 host=localhost # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Uri mapping [uri:/*.jsp] [uri:/*.do] [uri:/*] worker=ajp13:localhost:8009 # define the worker [status:status] # Uri mapping [uri:/jkstatus/*] worker=status:status 3.新建站点 在IIS中新建站点,路径为JSP项目所在路径 允许权限(读取,运行脚本,执行) 4.创建ISAPI筛选器 右击站点"属性">"ISAPI筛选器"标签 添加>>筛选器名称:jakarta 可执行文件:指到"isapi_redirector2.dll" 5.创建JSP文件映射 右击站点"属性">"主目录"标签 >>配置>>添加>>可执行文件(指到"isapi_redirector2.dll",如果路径中存在空格需要用双引号) 扩展名".jsp"(需要tomcat解析的所有扩展名) 如果有多个请重复执行添加操作 6.新建虚拟目录"jakarta" 在刚建好的站点上新建虚拟目录"jakarta" 路径指到到tomcat安装目录下的conf文件夹 允许权限(读取,运行脚本,执行) 7.添加WEB服务扩展 右击web服务扩展>"添加一个新的WEB服务扩展(A)..." 扩展名随便写"JSP" 要求的文件:指到"isapi_redirector2.dll" 设置扩展状态为允许 OK 重启IIS,TOMCAT 测试 tomcat直接访问 http://localhost:8080/index.jsp IIS整合后访问 http://localhost/index.jsp 注意 tomcat的一些虚拟主机配置可以见配置文件server.xml 在访问过测试页后ISAPI筛选器"jakarta"会显示绿色箭头,红色是配置错误 不知道还有没有漏掉的

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值