Install Apache + Servlet + JSP in Windows NT 4.0

Source: Internet
Author: User

He Zhiqiang eNet College


Install Apache + Servlet + JSP in Windows NT 4.0

This article only discusses how to install Apache + Servlet + JSP on Windows NT 4.0.

The configuration in this article is as follows:

Windows NT 4.0

Jdk1_2_2-001-win.exe

Apache_1_3_12_win32.exe

ApacheModuleJServ. dll

Tomcat.zip (3.0)

I. Software Download

JDK

Http://java.sun.com/products/jdk/1.2/

Apache Server

Http://www.apache.org/dist/binaries/win32/apache_1_3_12_win32.exe

Apache JServ

Http://jakarta.apache.org/builds/tomcat/release/v3.0/win32/ApacheModuleJServ.dll

Tomcat

Http://jakarta.apache.org/builds/tomcat/release/v3.0/tomcat.zip

Ii. Software Installation

(1) JDK

1. Double-click the jdk1_2_2-001-win.exe file and use the default configuration to install JDK. The default installation directory of JDK is

C: jdk1.2.2. The default installation directory of JRE is C: Program files0000oftjre1.2;

2. restart the computer;

3. Update the following environment variables: append the C: jdk1.2.2in directory to the PATH;

.; C: jdk1.2.2lib ools. jar; C: jdk1.2.2libdt. jar is added to CLASSPATH. Update

Method: Choose Control Panel> system> environment> system variables;

4. Test the applet:

1) Open the command window;

2) switch to the C: jdk1.2.2demoappletsTicTacToe directory;

3) Run appletviewer example1.htm;

4) Everything is normal;

5. test application:

1) create a test. java file under my D: HZQJava directory with the following content:

Public class test

{

Public static void main (String arc []) {

System. out. println ("JDK has been installed successfully. Thank you! ");

}

};

2) Open the command window;

3) switch to the D: HZQJava directory;

4) Run javac test. java for compilation;

5) run java test to run the program;

6) Everything is normal.

(2) Apache Server

1、double-click the apache_1_3_12_win32.exe file for installation, and use the default configuration for installation. The default installation directory is

C: Program FilesApache GroupApache. I use $ APACHE_ROOT instead of the installation destination;

2. Modify $ APACHE_ROOTconfhttpd.conf:

1) PORT

Set the port number used for running Apache Web Server.

Port 80 is used, so I changed it to Port 8080 and enter it in the browser later.

Http: // localhost: 8080/to access the Apache Web Server. Enter

Http: // localhost/can access IIS, so that both Web servers can be used.

$ APACHE_PORT ID;

2) DocumentRoot

Set the document root directory. When you enter http: // localhost: $ APACHE_PORT/in your browser

The server reads data from the root directory of the document. Because my programs are all stored in D: HZQ

DocumentRoot is set to D:/HZQ;

3. After installing Apache, add an Apache Web Server menu group in the "Start-> program" menu group and run

Install Apache as a service. In this case, choose Start> Settings> Control Panel> service.

An additional service named Apache can be used to start or stop the Apache service;

4. Open "start-> Settings-> Control Panel-> service", select Apache, and press "start" to start Apache.

Service;

5. Input http: // localhost: $ APACHE_PORT/in the browser to view all the files under D: HZQ,

This indicates that the Apache service has been installed successfully.

(3) Apache JServ

1. Copy the ApacheModuleJServ. dll file to the $ APACHE_ROOTmodules directory;

2. Modify $ APACHE_ROOTconfhttpd.conf:

Add LoadModule jserv_module modules/ApacheModuleJServ. dll

Start Apache JServ;

3. Restart the Apache service.

(4) Tomcat

1. Decompress tomcat.zip to a directory using winzipdecompressed software. I will decompress it to C:. It 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_ROOTconfhttpd.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 for running Tomcat. Note that Tomcat has an independent HTTP server.

The port number used. The port number 8081 is not occupied yet. I use $ TOMCAT_PORT to identify it 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.


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.