Tomcat
1、用WinZIP等解壓縮軟件把tomcat.zip解壓縮到一個目錄下,我把它解壓縮到C:\,它會自動創建tomcat子目錄,這樣在C盤就多了一個目錄C:/tomcat,我用$TOMCAT標識;
2、打開$APACHE_ROOT\conf\httpd.conf文件,在該文件最後加上類似這樣一句話:
Include $TOMCAT/etc/tomcat.conf
在我這裡為Include C:/tomcat/etc/tomcat.conf;
3、修改Tomcat運行的端口號,注意Tomcat自己有一個獨立的HTTP服務器,它必須使用一個還未被使用的端口號,我這裡的8081還未被占用,我用$TOMCAT_PORT標識,分配給Tomcat:
1)打開$TOMCAT/server.xml;
2)修改ContextManager:
4、雙擊$TOMCAT目錄下的startup.bat來啟動Tomcat;
5、在浏覽器上輸入http://localhost:$TOMCAT_PORT/,能看到Tomcat Version 3.0這一頁
就表示Tomcat安裝成功了;
6、在浏覽器上輸入http://localhost:$APACHE_PORT/examples/servlets/,能看到
Servlet Examples with Code這一頁就表示Apache+Servlet也成功了;
7、在浏覽器上輸入http://localhost:$APACHE_PORT/examples/Jsp/,能看到Jsp Samples
這一頁就表示Apache+Jsp也成功了。
附:
JDK Download
http://java.sun.com/products/jdk/1.2/
Apache Server Download
http://www.apache.org/dist/binaries/win32/apache_1_3_12_win32.exe
Apache JServ Download
http://jakarta.apache.org/builds/tomcat/release/v3.0/win32/ApacheModuleJServ.dll
Tomcat Download
http://jakarta.apache.org/builds/tomcat/release/v3.0/tomcat.zip
Java(TM) 2 SDK 1.2.2-001 Installation Instructions
http://java.sun.com/products/jdk/1.2/install-windows.html
Tomcat FAQ
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/faq
Tomcat+Apache-HOWTO
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/Tomcat%2bApache-HOWT