|
|
看了好多教程感觉很麻烦,我还是用原来在Windows下整合成功的步骤进行
1.安装好Apache和Tomcat
2.编译mod_jk2.so并cp至Apache的/modules目录下
前两部以前的教程都有很多了
3.在httpd.conf中添加
LoadModule jk2_module modules/mod_jk2.so
4.在httpd.conf的同一目录新建workers2.properties(我是直接cp原来Windows下用的,居然也能用),内容如下
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp
5.分别启动Apache和Tomcat,浏览器中输入127.0.0.1,出现Tomcat的欢迎界面,点击jsp-examples,看看里面的jsp例子:) |
|