WinXP Pro 上整合 Apache 2.0.48 + Tomcat 5.0.19

java 专栏收录该内容
1256 篇文章 0 订阅
<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

WinXP Pro 上整合 Apache 2.0.48 + Tomcat 5.0.19

 

软件准备:

Apache 2.0.48

Apache.linuxforum.net/dist/httpd/binaries/win32/Apache_2.0.48-win32-x86-no_ssl.msi">http://Apache.linuxforum.net/dist/httpd/binaries/win32/Apache_2.0.48-win32-x86-no_ssl.msi

Tomcat 5.0.19

Apache.linuxforum.net/dist/jakarta/Tomcat-5/v5.0.19/bin/jakarta-Tomcat-5.0.19.zip">http://Apache.linuxforum.net/dist/jakarta/Tomcat-5/v5.0.19/bin/jakarta-Tomcat-5.0.19.zip

jk2

Apache.linuxforum.net/dist/jakarta/Tomcat-connectors/jk2/binaries/win32/jakarta-Tomcat-connectors-jk2.0.2-win32-Apache2.0.43.zip">http://Apache.linuxforum.net/dist/jakarta/Tomcat-connectors/jk2/binaries/win32/jakarta-Tomcat-connectors-jk2.0.2-win32-Apache2.0.43.zip 

(把包内的mod_jk*.dll改名为mod_jk2.dll)

 

安装:

Apached:Apache2048

Tomcatd: omcat

并复制mod_jk2.dllD:Apache2048Apache2modules目录下

 

1.编辑D:Apache2048Apache2confhttpd.conf文件,加上

LoadModule jk2_module modules/mod_jk2.dll

 

2.注释掉

# AddDefaultCharset ISO-8859-1

 

3.文件尾部的改成

<VirtualHost *:80>

    ServerAdmin webmaster@dummy-host.example.com

    DocumentRoot "D: omcatwebapps"

    ServerName dummy-host.example.com

    ErrorLog logs/dummy-host.example.com-error_log

    CustomLog logs/dummy-host.example.com-access_log common

</VirtualHost>

 

4. D:Apache2048Apache2conf目录加一workers2.Properties文件:

[shm]

file=${serverRoot}/logs/shm.file

size=1048576

# Example socket channel override port and host.

[channel.socket:localhost:8009]

port=8009

host=127.0.0.1

# define the worker

[ajp13:localhost:8019]

channel=channel.socket:localhost:8009

# Uri mapping

[uri:/*]

worker=ajp13:localhost:8009

 

OK !

起动Apache Tomcat , http://localhost 该是和 http://localhost:8080 一样的了

 

 

附:

大部分是参考了他人文章,所以不是原创.

 

 

 

 

 

<script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值