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
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 !!
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.