I. Install Apache Web Server
A. Using RPM
If you use the RPM suite, after you get the Apache Web Server Suite, you can complete the installation by entering the following command:
[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]# gunzip apache_1.3.xx.tar.gz (xx on behalf of Apache Web Server version)
[Root@localhost root]# tar zxvf apache_1.3.xx.tar (XX on behalf of Apache Web Server version)
[Root@localhost root]# CD apache_1.3.xx
[root@localhost apache_1.3.xx]#./congifure \
>--prefix=/usr/local/apache/\ (set the directory you want to install is/usr/local/apache/)
>--enable-module=all \
>--enable-rule=share_core
[Root@localhost apache_1.3.xx]# make clean; make; Make install
After completing the above steps, you have basically completed the installation of the Apache Web Server.
II. Install JDK (Java Development kits)
Follow these steps to complete the installation of the JDK:
[Root@localhost root]# gunzip jdk1_2_2rc2-linux-i386.tar.gz
[Root@localhost root]# tar zxvf jdk1_2_2rc2-linux-i386.tar
[Root@localhost root]# MV jdk1.2.2/usr/local/jdk122
After you complete the above steps, you also need to set up your environment:
[Root@localhost root]# Vi. Bash_profile
...
...
java_home=/usr/local/jdk122
Path= $PATH: $JAVA _home/bin
Classpath=/usr/local/jdk122/lib/tools.jar:.
Export Java_home
Export PATH CLASSPATH
★ Please NOTE: If you are using JDK 1.1.x version, your CLASSPATH must be set as follows:
Classpath=/path/to/your/jdk/lib/classes.zip:.
Iii. installation of JSDK
★ Please NOTE: If you are using the Java Apache RPM version, skip this section.
You must obtain and install JSDK (Java Servlet Development kits) before you can 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 we have to do is get the file and set it to CLASSPATH:
Classpath=/path/to/jsdk/lib/jsdk.jar: $CLASSPATH
Export 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:
[Root@localhost root]# RPM-IVH apachejserv-1.1-b2.i386.rpm
A. Using SOURCE
If you are using Java Apache source, you must compile the source and install it:
[Root@localhost root]# tar zxvf apachejserv-1.1.tar.gz
[Root@localhost root]# CD ApacheJserv-1.1
[root@localhost apachejserv-1.1]#./congifure \
>--prefix=/usr/local/jsdk/\ (set the directory you want to install)
>--with-apxs=/usr/local/apache/bin/apxs \ (the full path of Apache APXS)
>--with-jdk-home= $JAVA _home \
>--with-java-platform=2 \ (Set the JDK version you use; 1 on behalf of JDK 1.1.x;2 for JDK 1.2.x)
>--with-jsdk=/usr/local/jsdk/lib/jsdk.jar
[Root@localhost apachejserv-1.1]# make clean; make; Make install
★ Please NOTE: Please read the "Java Apach Test" section first.
V. Installing the GNU JSP
After you obtain the GNU JSP, follow these steps to install it:
[Root@localhost root]# gunzip gnujsp_0_9_10.tar.gz
[Root@localhost root]# tar zxvf gnujsp_0_9_10.tar
[Root@localhost root]# MV gnujsp-0.9.10/usr/local/gnujsp
[Root@localhost root]# Cd/home/httpd/servlets
[Root@localhost servlets]# MkDir compiled
[Root@localhost servlets]# chown Nobody.nobody compiled
After completing the above instructions, we also need to set up a few files:
1./etc/httpd/conf/jserv/jserv.properties
[Root@localhost root]# Cd/etc/httpd/conf/jserv If you are using the source of the Apache Web Server, you must compile the source and install it:
[Root@localhost root]# gunzip apache_1.3.xx.tar.gz (xx on behalf of Apache Web Server version)
[Root@localhost root]# tar zxvf apache_1.3.xx.tar (XX on behalf of Apache Web Server version)
[Root@localhost root]# CD apache_1.3.xx
[root@localhost apache_1.3.xx]#./congifure \
>--prefix=/usr/local/apache/\ (set the directory you want to install is/usr/local/apache/)
>--enable-module=all \
>--enable-rule=share_core
[Root@localhost apache_1.3.xx]# make clean; make; Make install
After completing the above steps, you have basically completed the installation of the Apache Web Server.
II. Install JDK (Java Development kits)
Follow these steps to complete the installation of the JDK:
[Root@localhost root]# gunzip jdk1_2_2rc2-linux-i386.tar.gz
[Root@localhost root]# tar zxvf jdk1_2_2rc2-linux-i386.tar
[Root@localhost root]# MV jdk1.2.2/usr/local/jdk122
After you complete the above steps, you also need to set up your environment:
[Root@localhost root]# Vi. Bash_profile
...
...
java_home=/usr/local/jdk122
Path= $PATH: $JAVA _home/bin
Classpath=/usr/local/jdk122/lib/tools.jar:.
Export Java_home
Export PATH CLASSPATH
★ Please NOTE: If you are using JDK 1.1.x version, your CLASSPATH must be set as follows:
Classpath=/path/to/your/jdk/lib/classes.zip:.
Iii. installation of JSDK
★ Please NOTE: If you are using the Java Apache RPM version, skip this section.
You must obtain and install JSDK (Java Servlet Development kits) before you can 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 we have to do is get the file and set it to CLASSPATH:
Classpath=/path/to/jsdk/lib/jsdk.jar: $CLASSPATH
Export 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:
[Root@localhost root]# RPM-IVH apachejserv-1.1-b2.i386.rpm
A. Using SOURCE
If you are using Java Apache source, you must compile the source and install it:
[Root@localhost root]# tar zxvf apachejserv-1.1.tar.gz
[Root@localhost Root]
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.