(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