答案:安装[b:22aa57d453]Tomcat5[/b:22aa57d453], 编译安装[b:22aa57d453]apache2(DSO support)+mod_jk2[/b:22aa57d453]
如果不会编译[b:22aa57d453]mod_jk2[/b:22aa57d453],只要你的[b:22aa57d453]apache2[/b:22aa57d453]支持[b:22aa57d453]DSO[/b:22aa57d453],
去我的站点上下载:[b:22aa57d453]http://www.javaws.com/mod_jk2-2.0.43.so [/b:22aa57d453]([b:22aa57d453]Linux[/b:22aa57d453]版,请 mv 到 [b:22aa57d453]$apache_home/modules/mod_jk2.so[/b:22aa57d453] )
修改[b:22aa57d453]$apache_home/conf/httpd.conf[/b:22aa57d453],加入
[code:1:22aa57d453]LoadModule jk2_module modules/mod_jk2.so[/code:1:22aa57d453]在[b:22aa57d453]$apache_home/conf/worker2.properties[/b:22aa57d453]里面写上
[code:1:22aa57d453][logger.apache2]
level=info[shm]
file=/var/logs/httpd/shm.file
size=1048576[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/*]
worker=ajp13:localhost:8009
[/code:1:22aa57d453]重启apache2, 打开http://127.0.0.1/index.jsp,可以看见小猫了!
心得:另外只要AppServer支持AJP1.3,都可以使用mod_jk2!
Apache/2.0.48 (Unix) DAV/2 PHP/4.3.4 mod_jk2/2.0.0 Server at localhost Port 80配置完了后.显示这样
但是运行http://localhost/index.jsp
显示出源代码出来了.运行不了!!
是不是tomcat5还要设置?
linuxsky 回复于:2003-12-18 09:53:33
改成workers2.properties
好像可以结合了..
我在tomcat下发布一个test目录.
可以用http://localhost/test/看到但是如何可以让根目录支持php和jsp?
jhsea3do 回复于:2003-12-18 19:36:37
去掉 [code:1:347083751e][uri:/*][/code:1:347083751e]
改为:[code:1:347083751e]
[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/*.jspa]
worker=ajp13:localhost:8009
[uri:/test/*]
worker=ajp13:localhost:8009
[uri:/servlet/*]
worker=ajp13:localhost:8009
..............[/code:1:347083751e]有问题请仔细考虑以后再发问
上一个:最简单的无盘98工作站安装方法
下一个:管住网内的BT下载