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