Apache + Jserv integration steps

Source: Internet
Author: User
Apache + Jserv integration step (reprinted) -- Linux general technology-Linux programming and kernel information. The following is a detailed description. Apache + Jserv integration steps
I. source code package:
Jdk-1_2_2_006-linux-i386.tar.gz
Jsdk20-solaris2-sparc1_12.16.tar. Z
ApacheJServ-1.1.2.tar.gz

Ii. Installation Process
1. Install jdk1.2.2

(1) uncompress the package
Tar xvzf jdk1_2_2_006-linux-i386.tar.gz
(2) Directory Processing
Ln-s jdk1.2.2 jdk
Ln-s jdk/jre
(3) set $ JAVA_HOME, $ CLASSPATH
Vi/root/. bash_profile
Join:
JAVA_HOME =/usr/local/jdk
Export JAVA_HOME
CLASSPATH =/usr/local/jdk/lib:/usr/local/jre/lib
Export CLASSPATH
PATH = $ PATH:/usr/local/jdk/bin:/usr/local/jre/bin
Note: JDK installation ends here.

2. Install JSDK
(1) tar zxvf jsdk20-solaris2-sparc1_12.16.tar. Z
(2) Move the generated JSDK2.0 directory to/usr/local/JSDK2.0
Mv JSDK2.0/usr/local/JSDK2.0
Note: The installation of JSDK ends here.

3. Static hybrid compilation of Apache and Jserv
Static compilation refers to compiling Jserv into apache.

(1) tar xvzf apache_1.3.12.tar.gz
Tar xvzf ApacheJServ-1.1.2.tar.gz
(2) cd apache_1.3.12
./Configure -- prefix =/usr/local/apache
(3) 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/jdk1.2.2 \
-- With-java-platform = 2 \
-- With-JSDK =/usr/local/JSDK2.0/lib/jsdk. jar
Make
Make install
(4) Compile apache and apache jserv
Cd ../apache_1.3.12
./Configure \
-- Prefix =/usr/local/apache \
-- Activate-module = src/modules/jserv/libjserv.
Make
Make install
(5) run/usr/local/apache/bin/httpd-l to check whether mod_jserv has been compiled into apache.
(6) change the configuration file/usr/local/apache/conf/httpd. conf.
Add Include/usr/local/jserv/etc/jserv. conf
(7) change the configuration file/usr/local/jserv/etc/jserv. conf.
SetHandler jserv-status
Order deny, allow
Deny from all
Add your trusted host allow from xxxx
In this way, you can view the configuration information of your apache jserv on the trusted host through http: // yourserver/jserv/(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.
Note: Apache and Jserv mixed compilation ends here

Iii. Final test:
1. start apache:/usr/local/apache/bin/apachectl start
2. Use a browser to test http: // yourserver/servlets/IsItWorking. You can see Yes, It's working! ? You have succeeded !!
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.