Install Apache + Servlet + JSP in WindowsNT4.0

Source: Internet
Author: User
This article only discusses how to install Apache + Servlet + JSP on WindowsNT4.0. The configuration in this article is as follows: WindowsNT4.0jdk1_2_2-001-win.exeapache_1_3_12_win32.exeApacheModuleJServ.dlltomcat.zip (3.0) I. software download JD ApacheservletWindows NT

Version: 1.0
Author: He Zhiqiang (hhzqq@sina.com)
Time: 200000003.16

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 Files \ kerberoft \ JRE \ 1.2;
2. restart the computer;
3. update the following environment variables: append the C: \ jdk1.2.2 \ bin directory to the PATH;
.; C: \ jdk1.2.2 \ lib \ tools. jar; C: \ jdk1.2.2 \ lib \ dt. 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.2 \ demo \ applets \ TicTacToe directory;
3) run appletviewer example1.htm;
4) everything is normal;
5. test application:
1) create a test. Java file under my D: \ HZQ \ java Directory. the content is as follows:
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: \ HZQ \ Java 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 Files \ Apache Group \ Apache, I use $ APACHE_ROOT to replace the installation destination;
2. modify $ APACHE_ROOT \ conf \ httpd. 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_ROOT \ modules directory;
2. modify $ APACHE_ROOT \ conf \ httpd. 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: \, 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 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.

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-HOWTO

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.