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

Related Article

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.