JSP installation in Linux

Source: Internet
Author: User

Install Apache + apachejserv + JSP on Linux

The software installation sequence is as follows:

I. install Apache Web Server
A. Use rpm
If you use the RPM kit, after obtaining 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] # gunzip apache_1.3.xx.tar.gz (XX indicates Apache Web Server Version)
[Root @ localhost root] # tar zxvf apache_1.3.xx.tar (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 to/usr/local/Apache /)
> -- Enable-module = all \
> -- Enable-Rule = cmd_core
[Root @ localhost apache_1.3.xx] # Make clean; Make; make install
After completing the preceding steps, you have basically completed the installation of Apache Web server.

Ii. Install JDK (Java Development kits)
Follow these steps to complete JDK installation:
[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 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 JDK 1.1.x is used, 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.
You must first obtain and install jsdk (Java Servlet Development kits) to make Java Apache operate. But in fact, what we need is only a small part of the jsdk. jar or servlet. JAR file). All you need to do now is get the file and set it to classpath:
Classpath =/path/to/jsdk/lib/jsdk. jar: $ classpath
Export classpath

IV. install Java apache
. use RPM
if you are using the RPM suite, after you obtain the Java Apache suite, you only need to enter the following command to complete the installation:
[root @ localhost root] # rpm-IVH ApacheJServ-1.1-b2.i386.rpm
. use source
if you are using the source of Java Apache, you must compile and install the source:
[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 \ (full path of Apache apxs)
-- With-JDK-home = $ java_home \
-- With-Java-platform = 2 \ (set the JDK version you are using; 1 represents JDK 1.1.x; 2 represents JDK 1.2.x)
-- With-jsdk =/usr/local/jsdk/lib/jsdk. jar
[root @ localhost ApacheJserv-1.1] # Make clean; Make; make install
★Note: Read the [Java Apach test] section first.

v. install gnu jsp
after obtaining gnu jsp, follow these steps:
[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 the preceding commands are completed, we need to set several files:
1. /etc/httpd/CONF/Jserv/jserv. properties
[root @ localhost root] # cd/etc/httpd/CONF/Jserv if you are using the source of Apache Web server, you must compile and install the source:
[root @ localhost root] # gunzip apache_1.3.xx.tar.gz (XX indicates the Apache Web Server Version)
[root @ localhost root] # tar zxvf apache_1.3.xx.tar (XX indicates the 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 to be installed to/usr/local/Apache /)
-- enable-module = all \
-- enable-Rule = kernel _core
[root @ localhost apache_1.3.xx] # Make clean; make; after completing the preceding steps, make install
has basically completed the installation of Apache Web server.

Ii. Install JDK (Java Development kits)
Follow these steps to complete JDK installation:
[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 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 JDK 1.1.x is used, 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.
You must first obtain and install jsdk (Java Servlet Development kits) to make Java Apache operate. But in fact, what we need is only a small part of the jsdk. jar or servlet. JAR file). All you need to do now is get the file and set it to classpath:
Classpath =/path/to/jsdk/lib/jsdk. jar: $ classpath
Export classpath

Iv. install Java Apache
. Use rpm
If you are using the RPM kit, after you have obtained the Java Apache kit, you only need to enter the following command to complete the installation:
[Root @ localhost root] # rpm-IVH ApacheJServ-1.1-b2.i386.rpm
A. Use Source
If you are using the source of Java Apache, you must compile and install the source:
[Root @ localhost root] # tar zxvf ApacheJServ-1.1.tar.gz
[Root @ localhost root]

Related Article

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.