Apache + Servlet + Jsp environment settings (below)

Source: Internet
Author: User

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.