Install Apache + ApacheJServ + JSP_MySQL on Linux

Source: Internet
Author: User
I. copyright statement this document will be published in the GPL format. 2. as the saying goes, the software must be used first to do its best. The following lists the resources obtained by the software mentioned in this article, and the software is arranged in the order of installation. I. ApacheWebServerowww. apache. orgowww. redhat. comohttp: Apache

I. copyright notice
This file will be published in GPL mode.

2. software acquisition
As the saying goes, to do a good job, you must first sharpen the tool. The following lists the resources obtained by the software mentioned in this article, and arranges the software in the order of installation.



I. Apache Web Server

O http://www.apache.org/
O http://www.redhat.com/
O http://cle.linux.org.tw/

II. JDK

O http://java.sun.com/

III. JSDK

O http://java.sun.com/

IV. Java Apache

O http://java.apache.org/

V. GUN JSP

O http://www.gnu.org/
O http://java.apache.org/


III. software installation
I. install Apache Web Server

A. Use RPM

If you are using the RPM suite, after you obtain the Apache Web Server suite, you only need to enter the following command to complete the installation:

[Root @ localhost root] # rpm-ivh apache-1.3.xx.i386.rpm (xx stands for Apache Web Server version)

B. use SOURCE

If you are using the Source of Apache Web Server, you must compile and install the Source:

[Root @ localhost root] # tar zxvf apache_1.3.xx.tar.gz (xx indicates 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)

> -- Enable-module = all

> -- Enable-rule = cmd_core

[Root @ localhost apache_1.3.xx] # make clean; make install

After completing the above steps, you have basically completed the installation of Apache Web Server.

II. install JDK

You can obtain the latest JDK (Java Development Kits) in Sun from the above position ). Follow these steps to complete JDK installation:

[Root @ localhost root] # tar zxvf jdk1_2_2rc2-linux-i386.tar.gz

[Root @ localhost root] # mv jdk1.2.2/usr/local/jdk122

After completing the preceding steps, you also need to set the 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

★Note: If you are using JDK 1.1.x, your CLASSPATH must be set as follows:

CLASSPATH =/path/to/your/jdk/lib/classes.zip :.

III. install JSDK

★Note: If you are using the Java Apache RPM version, skip this section.

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.