(4) Tomcat
1. Decompress tomcat.zip to a directory using winzipdecompressed software. I will decompress it to C: \, which will automatically
Create a tomcat sub-directory. In this way, a directory C:/tomcat is added to drive C, which is identified by $ TOMCAT;
2. Open the $ APACHE_ROOT \ conf \ httpd. conf file and add a similar sentence at the end of the file:
Include $ TOMCAT/etc/tomcat. conf
Here I will Include C:/tomcat/etc/tomcat. conf;
3. Modify the port number of Tomcat running. Note that Tomcat has an independent HTTP server. It must use an unused port number, and 8081 is not occupied yet, I use $ TOMCAT_PORT to identify and assign it to Tomcat:
1) Open $ TOMCAT/server. xml;
2) Modify ContextManager:
4. Double-click startup. bat in the $ TOMCAT directory to start Tomcat;
5. Enter http: // localhost: $ TOMCAT_PORT/in the browser to view the Tomcat Version 3.0 page.
It indicates that Tomcat is successfully installed;
6. Enter http: // localhost: $ APACHE_PORT/examples/servlets/in the browser.
Servlet Examples with Code indicates that Apache + Servlet has succeeded;
7. Enter http: // localhost: $ APACHE_PORT/examples/Jsp/in the browser to view the Jsp Samples.
This page indicates that Apache + Jsp is successful.
Appendix:
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