我看了精化区的文章
没成功。很多地方不明白。
不知道谁有没有更好的经验?分享一下。谢谢
lihn 回复于:2003-12-17 13:25:25 |
我也想知道,好像和tomcat4的安装发有些区别 |
jhsea3do 回复于:2003-12-17 23:46:03 |
安装[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! |
linuxsky 回复于:2003-12-18 08:58:32 |
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] 有问题请仔细考虑以后再发问 |
iHero 回复于:2003-12-22 09:35:29 |
精华区中有详细的说明.请大家看看! |
carefen 回复于:2003-12-22 14:35:03 |
我也看了精华区的文章,,也是没有配置成功。。
到了编译webapp那里就出现了以下的错误 [root@carefen webapp]# ./configure --with-apxs=/usr/local/apache/bin/apxs --with-tomcat=/usr/local/jakarta-tomcat-4.1.29 Configuring WebApp Module + checking build system type... i686-pc-linux-gnu + checking host system type... i686-pc-linux-gnu + checking for sources directory path... /usr/local/mod_jk/webapp + checking for build directory path... /usr/local/mod_jk/webapp Checking Apache APXS + checking for apxs name... /usr/local/apache/bin/apxs + checking for apxs directory path... /usr/local/apache/bin + checking for apxs... /usr/local/apache/bin/apxs + checking for apxs availability... /usr/local/apache/bin/apxs + checking for apxs version... /usr/local/apache/bin/apxs (1.3) + checking for apxs sanity... error configure: error: apxs is unworkable |
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/