Install apache+servlet+jsp under Windows NT 4.0

Source: Internet
Author: User
Tags iis include version win32 window access port number root directory
Apache|js|servlet|window Version: 1.0
Author: He Zhiqiang (hhzqq@sina.com)
Time: 2000.03.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)
First, 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
Second, the Software installation
(i) JDK
1, double-click the Jdk1_2_2-001-win.exe file for installation, use the default configuration for installation, the JDK default installation directory is
The default installation directory for C:\JDK1.2.2,JRE is C:\Program files\javasoft\jre\1.2;
2, restart the computer;
3, update the following environment variables: the C:\jdk1.2.2\bin directory appended to the path;
.; C:\jdk1.2.2\lib\tools.jar; C:\jdk1.2.2\lib\dt.jar added to the classpath. Update
Methods: Control Panel-> System-> Environment-> system variable;
4. Test applet:
1) Open Command window;
2) switch to C:\jdk1.2.2\demo\applets\TicTacToe directory;
3) running Appletviewer example1.htm;
4) all normal;
5, test application:
1 Create a Test.java file in my D:\HZQ\Java directory, which reads as follows:
public class Test
{
public static void Main (String arc[]) {
System.out.println ("JDK installed successfully, friend!") ");
}
};
2) Open Command window;
3) switch to D:\HZQ\Java directory;
4) running Javac Test.java for compiling;
5 run Java test to run this program;
6) everything is normal.
(ii) Apache Server
1, double-click the Apache_1_3_12_win32.exe file for installation, 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 the $apache_root\conf\httpd.conf:
1) PORT
Set the port number used by the Apache Web Server runtime, because IIS is also running here, IIS makes
With a 80 port number, I changed it to port 8080, and then I typed it in the browser.
http://localhost:8080/to access the Apache Web Server server, enter
http://localhost/access to IIS, so that two Web servers can be used Oh, I use
$APACHE _port identification;
2) DocumentRoot
Set the document root directory, when you enter http://localhost on the browser: $APACHE _port/, dress
The utility will read the data from the root of the document, because my program is placed under the D:\HZQ, so I
DocumentRoot set to D:/hzq;
3, Apache installed in the "Start-> Program" menu group more than the Apache WEB Server menu group, run the
Install Apache as a service, so that in the "Start-> Settings-> Control Panel-> Service"
One more service called Apache, which you can use to start or stop the Apache service;
4, open "Start-> Set-> Control Panel-> Service", select the Apache service, press "Start" to start Apache
Service
5, I entered http://localhost in the browser: $APACHE _port/, I saw all the files under D:\HZQ,
This indicates that the Apache service has been successfully installed.
(iii) Apache Jserv
1, copy the ApacheModuleJServ.dll file to the $apache_root\modules directory;
2, modify the $apache_root\conf\httpd.conf:
Add the LoadModule jserv_module Modules/apachemodulejserv.dll in the file to
Start Apache Jserv;
3, restart the Apache service.
(iv) Tomcat
1, with WinZip, such as decompression software to Tomcat.zip to a directory, I unzipped it to C:\, it will automatically
Create Tomcat subdirectories, so that in the C disk more than a directory c:/tomcat, I use $tomcat logo;
2, open the $apache_root\conf\httpd.conf file, at the end of the file plus a similar sentence:
Include $TOMCAT/etc/tomcat.conf
In me here for include c:/tomcat/etc/tomcat.conf;
3. To modify the port number of Tomcat running, note that Tomcat has a separate HTTP server, it must use a
The port number used, my 8081 is not yet occupied, I use the $tomcat_port logo, assigned to TOMCAT:
1) Open $tomcat/server.xml;
2) Modify Contextmanager:<contextmanager port= "8081" hostname= "inet=" ">
4, double-click the $tomcat directory of the Startup.bat to start Tomcat;
5, enter http://localhost on the browser: $TOMCAT _port/, can see TOMCAT Version 3.0 this page
It means the Tomcat installation was successful;
6, in the browser input http://localhost: $APACHE _port/examples/servlets/, can see
Servlet examples with Code this page means that Apache+servlet also succeeded;
7, in the browser input http://localhost: $APACHE _port/examples/jsp/, can see the JSP Samples
This page means that apache+jsp has also succeeded.

Report:
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



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.