This article describes how to install the JSP's running environment under Windows 2000, which is implemented in combination with Apache and tomcat servers.
Software to use:
1, Apache_1_3_12_win32.exe
2, Jdk-1_2_2_008-win.exe
3, Jakarta-tomcat-3.1.1.zip
4, ApacheModuleJServ.dll.zip
The above software can be downloaded from http://www.apache.org and http://java.sun.com website.
OK, so let's start by installing the software to install the JSP's operating environment under Windows 2000.
1. Install Apache:
Start the installer by running the Apache_1_3_12_win32.exe file first. During the installation, I installed Apache into the C:\Program files\apache\ directory.
After the installation is complete, open the httpd.conf file to make some changes, will run the Apache program group install Apache as a service program, will be installed Apache as a Windows 2000 services.
Finally, run the service console in the Admin tool, find Apache, run it, Ok,apache install it, and now you can enter http://localhost/in the browser, which should be displayed in the C:\Program fiels\apache\ The list of files under Htdocs\, if shown, shows that your Apache did install successfully.
2. Install JDK:
The purpose of installing the JDK is to install a Java operating environment on your machine, of course, if you install the JRE, but you can also write and run Java programs if you install the JDK, why not?
OK, let's look at how to install the JDK and run Jdk-1_2_2_008-win.exe to start the installation. Follow the installer step-by-step, where the JDK is installed under C:\ jdk1.2.2, and the JRE is installed under C:\Program files\ javasoft\jre\.
Add path information, click My Computer-> Properties-> Advanced-> environment variable, find the path variable in the system variable, edit it, and add C:\jak1.2.2\bin at the end of it, separated by the semicolon and the previous path information. Click OK, apply.
OK, now open a DOS window and run the Java command to see if the Java command is using Help::. If it does, it means your JDK has been installed successfully.
3. Install Tomcat:
All right! The rest of the work is done, and the Tomcat is left out, let's continue:
Extract the Jakarta-tomcat-3.1.1.zip file into the C:\ directory and modify the folder name to Tomcat.
Open the System Variables dialog again, click on My Computer-> properties-> Advanced-> environment variable, find the path variable in the system variable, and add C:\tomcat\bin path information at the end. In addition, add two variables:
Tomcat_home= "C:\tomcat"
Java_home= "C:\jdk1.2.2"
Okay, now it's time to say your Tomcat is installed, open the DOS window, run the startup script command under C:\tomcat\bin\, and the system will automatically eject a DOS window, The caption of the window is written with Java.exe information, at this time, you can open your browser input: http://localhost:8080/, enter, haha has been tomcat appear in front of you. The Tomcat installation was successful.
The above installation process, if all goes well, you already have the JSP's running environment, but now Tomcat is running in stand-alone mode, let's take a look at how to embed tomcat into Apache execution:
When Tomcat runs up, in C:\tomcat\conf\ The directory has a file called tomcat-apache.conf, in order to allow Tomcat to embed Apache to run, you need to include this file in the Apache httpd.conf file, the simple way is to add a line at the end of httpd.conf Include c:\tomcat\conf\tomcat-apache.conf.
Then unzip the ApacheModuleJServ.dll.zip to C:\Program files\apache\modules\, restart the Apache server, and then enter http://localhost/in the browser examples/jsp/return to see what effect? Haha, tomcat with some of the JSP page example displayed in the browser, select a look, JSP can really run on your machine::
All right! Now you can learn the grammar of JSP and test your JSP program on your machine.
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.