Redhat + apache + jserv + jsdk

Source: Internet
Author: User

[China Linux Forum] wangzy eNet College


Install apache jserv 1.1.2 in RedHat

Although apache jserv's Development Team is currently engaged in tomcat development, apache jserv only supports servlet 2.0

And add other software (gnujsp) to support jsp. However, apache jserv is more stable than tomcat at this stage,

Therefore, apache jserv + gnujsp is suitable for web applications. If you want to use servlet2.2 and jsp1.1

For more information about how to use tomcat, see tomcat installation. This article describes how to install apache jserv 1.1.1 in RedHat.

I. Required software:

Jdk_1.2.2 download from http://java.sun.com

Download apache_1.3.12 from www.apache.org

Apache jserv-1.1.1 download from java.apache.org

Jsdk2.0 (only 2.0) download from http://java.sun.com

Ii. Installation Process

Install jdk first. For details, refer to jdk installation. Note that CLASSPATH and PATH are set.

Copy apache, apache jserv source code package to/tmp

# Tar xvzf apache_1.3.12.tar.gz

# Tar xvzf ApacheJServ-1.1.2.tar.gz

1. Static compilation, that is, compiling into apache

# Cd apache_1.3.12

#./Configure -- prefix =/usr/local/apache

Configure apache jserv compilation Parameters

# Cd ../ApacheJServ-1.1.2

#./Configure

-- Prefix =/usr/local/jserv

-- With-apache-src = ../apache_1.3.12

-- With-jdk-home =/usr/local/jdk

-- With-java-platform = 2

-- With-JSDK =/usr/local/JSDK/lib/jsdk. jar

# Make

# Make install

Compile apache and apache jserv

# Cd ../apache_1.3.12

#./Configure

-- Prefix =/usr/local/apache

-- Activate-module = src/modules/jserv/libjserv.

# Make

# Make install

Run #/www/bin/httpd-l to check whether mod_jserv has been compiled into apache.

2. dynamic compilation (DSO Mode)

# Cd apache_1.3.12

#./Configure

-- Prefix =/usr/local/apache

-- Enable-shared = max

# Make

# Make install

Configure apache jserv compilation Parameters

# Cd ../ApacheJServ-1.1.2

#./Configure

-- Prefix =/usr/local/jserv

-- With-apxs =/usr/local/apache/bin/apxs

-- With-jdk-home =/usr/local/jdk

-- With-java-platform = 2

-- With-JSDK =/usr/local/JSDK/lib/jsdk. jar

# Make

# Make install

If you want to use mod_ssl, add the -- with-EAPI option.

3. Change the configuration file

Add/www/conf/httpd. conf

Include/usr/local/jserv/etc/jserv. conf

If you use DSO mode to install jserv. conf

Remove the comment above LoadModule jserv_module/usr/local/jserv/libexec/mod_jserv.so

Start apache

Test http: // yourserver/servlets/IsItWorking in a browser

Yes, Its working! ? You have succeeded !!

You can change

SetHandler jserv-status

Order deny, allow

Deny from all

Add your trusted host allow from xxxx

In this way, you can see your

Configuration information of apache jserv.

Next, put your own servlet class in/usr/local/jserv/servlets to experiment with the results.

It indicates that there is no Chinese display problem in redhat6.2. Everything is OK!

For more information about servlet zone settings and load balance, see apache jserv and java.apache.org.


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.