Install Apache JServ 1.1.2 in RedHat

Source: Internet
Author: User

I. Required software:

Download jdk_1.2.2 from

Apache_1.3.12 download from

Apache jserv-1.1.1 download from java.apache.org

Jsdk2.0 (2.0 only) download from

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 with a browser

Yes, it @ # s 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 the configuration information of your Apache JServ on the trusted host (note the following.

Next, put your own servlet class under/usr/local/Jserv/Servlets to test the effect. The test results show that there is no problem with Chinese display in redhat6.2. Everything is OK!

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

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.