Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
I.. copyright NOTICE
This document will be published under the GPL.
Second, the Software acquisition
As the saying goes, 工欲善其事, its prerequisite; The following are listed as related resources for the software mentioned in this article, and the Order of the software will be arranged in the order of installation.
I. Apache Web Server
Iv. Java Apache
V. GUN JSP
Third, Software Installation
I. Install Apache Web Server
A. Using RPM
If you are using the RPM suite, after you have obtained the Apache Web Server Suite, just enter the following command to complete the installation:
[Root@localhost root]# Rpm-ivh apache-1.3.xx.i386.rpm (xx on behalf of Apache Web Server version)
B. Using SOURCE
If you are using the source of the Apache Web Server, you must compile the source and install it:
[Root@localhost root]# tar zxvf apache_1.3.xx.tar.gz (XX on behalf of Apache Web Server version)
[Root@localhost root]# CD apache_1.3.xx
>--prefix=/usr/local/apache/(Set the directory you want to install)
[Root@localhost apache_1.3.xx]# make clean; make; Make install
After completing the steps above, you have basically completed the installation of Apache Web Server.
II. Installation of JDK
You can get Sun's latest version of the JDK (Java Development kits) from the above location. Please follow these steps to complete the installation of the JDK:
[Root@localhost root]# tar zxvf jdk1_2_2rc2-linux-i386.tar.gz
After you complete the above steps, you will also need to set up your environment:
[Root@localhost root]# Vi. Bash_profile
Path= $PATH: $JAVA _home/bin
Export PATH CLASSPATH
★ Please NOTE: If you are using JDK 1.1.x version, your CLASSPATH must be set as follows:
Iii. installation of JSDK
★ Please NOTE: If you are using the Java Apache RPM version, skip this section.
You must first obtain and install JSDK (Java Servlet Development kits) in order to make Java Apache work. But in fact, all we need is a small part of the JSDK (a file called Jsdk.jar or Servlet.jar); now all you have to do is get the file and set it to your CLASSPATH:
IV. Install Java Apache
. Using RPM
If you are using the RPM suite, after you get the Java Apache suite, just enter the following command to complete the installation:
After completing the cumbersome installation steps above, we will continue with the GNU JSP installation. But before I introduce how to install the GNU JSP, I would like to briefly introduce what is JSP and the main function of JSP.
The JSP (Java Server page) was originally a file format on Java server, somewhat similar to the ASP (Active Server page) on MicroSoft IIS Server, with the main feature for dynamic network The page is written ("Dynamic Web page" is not meant to be DHTML) and is connected to the backend database through JDBC and gets, modifies, and edits the data. Of course, the JSP is not only the work of this, it can also be used for example, such as Socket connection functions.
Basically, we can treat JSP files as one of the Java Servlet programs. How do you say that? The JSP file is translated into a Java Servlet program by the JSP translation when it is first read, and the program is compiled and executed. And by the content of the JSP file, the code part of the JSP file, the syntax is not different from the Java servlet (in fact, this part of the translation will be copied to the new Java Servlet Program code). So we are convinced that understanding the writing techniques of the Java Servlet is helpful for writing JSP files.
Next, we will continue with the GNU JSP installation. Before this, please make sure you have obtained the GNU JSP file.
After you obtain the GNU JSP, follow these steps to install it:
[Root@localhost root]# tar zxvf gnujsp_0_9_10.tar.gz
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to firstname.lastname@example.org. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
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:
and provide relevant evidence. A staff member will contact you within 5 working days.