Home Database Mysql Tutorial 在 Linux 上安装Apache+ApacheJServ+JSP_MySQL

在 Linux 上安装Apache+ApacheJServ+JSP_MySQL

Jun 01, 2016 pm 02:07 PM
apache Install

Apache

一、版权声明
这份文件将遵循 GPL 方式发表。

二、软件取得
俗话说的好,工欲善其事,必先利其器;以下所列为本文中所提到软件取得的相关资源; 同时将以安装顺序来编排软件的次序。



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/


三、软件安装
I. 安装 Apache Web Server

a. 使用 RPM

如果你是使用 RPM 套件,在你取得 Apache Web Server 套件之后,只需要输入以下命令即可完成安装:

[root@localhost root]# rpm -ivh apache-1.3.xx.i386.rpm ( xx 代表 Apache Web Server 版本 )

b. 使用 SOURCE

如果你使用的是 Apache Web Server 的 Source,那么你必需对 Source 进行编译并且加以安装:

[root@localhost root]# tar zxvf apache_1.3.xx.tar.gz ( xx 代表 Apache Web Server 版本 )

[root@localhost root]# cd apache_1.3.xx

[root@localhost apache_1.3.xx]# ./congifure

> --prefix=/usr/local/apache/ ( 设定你所想要安装的目录 )

> --enable-module=all

> --enable-rule=SHARE_CORE

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

完成了以上步骤之后,基本上你己经完成了 Apache Web Server 的安装。

II. 安装 JDK

你可以由上述位置取得 Sun 最新版本的 JDK ( Java Development Kits )。请你依照下列步骤来完成 JDK 的完装:

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

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

完成上述步骤后,你还需要进行环境设定:

[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

★请注意:如果你使用的是 JDK 1.1.x 版本,你的 CLASSPATH 必须设定如下:

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

III. 安装 JSDK

★请注意:如果你使用的是 Java Apache RPM 版本,请跳过此节。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Is c++ front-end or back-end? Is c++ front-end or back-end? Apr 22, 2024 pm 05:33 PM

Is c++ front-end or back-end?

PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency Apr 30, 2024 pm 12:27 PM

PHP Framework Performance Comparison: The Ultimate Showdown of Speed ​​vs. Efficiency

How to generate URL from html file How to generate URL from html file Apr 21, 2024 pm 12:57 PM

How to generate URL from html file

The evasive module protects your website from application layer DOS attacks The evasive module protects your website from application layer DOS attacks Apr 30, 2024 pm 05:34 PM

The evasive module protects your website from application layer DOS attacks

Integration and expansion of golang function concurrency control and third-party libraries Integration and expansion of golang function concurrency control and third-party libraries Apr 25, 2024 am 09:27 AM

Integration and expansion of golang function concurrency control and third-party libraries

How to conduct concurrency testing and debugging in Java concurrent programming? How to conduct concurrency testing and debugging in Java concurrent programming? May 09, 2024 am 09:33 AM

How to conduct concurrency testing and debugging in Java concurrent programming?

How to add a server in eclipse How to add a server in eclipse May 05, 2024 pm 07:27 PM

How to add a server in eclipse

Application of algorithms in the construction of 58 portrait platform Application of algorithms in the construction of 58 portrait platform May 09, 2024 am 09:01 AM

Application of algorithms in the construction of 58 portrait platform

See all articles