=============================================
本文我已经测试通过了!
=============================================
题目:Windows2000 下整合Apache2与Tomcat4
作者:robornet
日期:2002-10-30
原由:搞了一段时间的java项目,到分发的时候了,可找不到一份最新的Apache2与Tomcat4的整合配置,遂看了半天的jakarta在线资料,并参照以前网友的文章,
写了这篇配置文档,以作参考,欢迎斧正!
目录:
一、软件准备
二、软件安装
三、首次配置及测试
四、整合配置
五、全线测试
六、不足
七、感谢
八、说明
步骤:
一、软件准备:
假设你有一台能正常运行win2000的硬软软件环境。
1.j2sdk1.4.1: 到http://java.sun.com/j2se/1.4.1/download.html下载!(注意是Windows (all languages, including English)的sdk版)
2.Apache2.0.43: 到http://www.apache.inetcosmos.org/dist/httpd/binaries/win32/apache_2.0.43-win32-x86-no_ssl.msi 下载!
3.Tomcat4.1.12:到 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/jakarta-tomcat-4.1.12.exe 下载!
4.mod_jk.dll: 到http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/win32/mod_jk-2.0.42.dll下载!
(说明,由于mod_jk2-2.0.43.dll与Apache2.0.43配置没成功,现用mod_jk-2.0.42.dll代替)
二、软件安装:
(1)安装j2sdk:
1.按照安装向导进行安装(一般安装到C:j2sdk1.4.1下,方便下面操作)
(2)安装apache:
1.按照安装向导进行安装(选择安装目录为C:,方便下面操作;安装成功后其路径为:C:Apache2)
(3)安装Tomcat:
1.按照安装向导进行安装(更改安装目录为C:Tomcat4,若只是测试,没必要把tomcat安装成Services,方便下面操作),
其间会要你输入Admin(系统管理员)的口令。
三、首次配置及测试:
对以上安装的软件环境进行首次配置,并测试其环境。
(1)配置--环境变量:
1.新建系统变量JAVA_HOME,其值为:C:j2sdk1.4.1 //若你没按以上路径安装请更改为正确的路径
2.新建系统变量TOMCAT_HOME,其值为:C:Tomcat4 //同上
3.新建系统变量CLASSPATH,其值为:%JAVA_HOME%lib;%TOMCAT_HOME%lib
(2)修改错误:
1.Apache2.0.43有一个小问题,默认安装成功后在Apache2主目录下的htdocs目录中没有index.html文件,你须将该目录下的index.html.en改名为index.html

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

WebStorm Mac version
Useful JavaScript development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.