RedHat6.2 server configuration solution (10): Apache & JServ
Source: Internet
Author: User
Article Title: RedHat6.2 server configuration solution (10): Apache & JServ. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Author: Tang haijing
Chapter 10 Integration of Apache and JServ in Linux
10.1 source code package:
Jdk-1_2_2_006-linux-i386.tar.gz
(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.
10.2.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
10.3 final test:
1. start apache:/usr/local/apache/bin/apachectl start
2. Use a browser to test http: // yourserver/servlets/IsItWorking
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