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