Install the Apache jserv 1.1.2 server under Redhat
Source: Internet
Author: User
One, the required software:
jdk_1.2.2 from download
apache_1.3.12 from download
Apache jserv-1.1.1 Download from java.apache.org
jsdk2.0 (only 2.0) from download
Second, the installation process
Please install the JDK first, you can refer to the JDK installation, and set the Classpath and path.
Copy apache,apache Jserv source package to/tmp
#tar Xvzf apache_1.3.12.tar.gz
#tar Xvzf apachejserv-1.1.2.tar.gz
1, static compilation, that is, compiled 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
Compiling Apache and Apache Jserv
#cd. /apache_1.3.12
#./configure
--prefix=/usr/local/apache
--activate-module=src/modules/jserv/libjserv.a
#make
#make Install
Run #/www/bin/httpd-l Check to see if Mod_jserv is 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, please add--WITH-EAPI option
Third, change the configuration file
Join in the/www/conf/httpd.conf
Include/usr/local/jserv/etc/jserv.conf
If you use the DSO mode installation, please put the jserv.conf
LoadModule Jserv_module/usr/local/jserv/libexec/mod_jserv.so before the comments are removed
Start Apache
Test with browser
Have you seen the yes,it@ #s working!? You did it!!
You can change the jserv.conf in the
SetHandler Jserv-status
Order Deny,allow
Deny from all
Join your trusted host allow from XXXX
This allows you to see your Apache Jserv configuration information by passing on the trusted host (note that this "/" is not less).
Then in/usr/local/jserv/servlets down into your own servlet class experiment effect, test results show that under redhat6.2 No Chinese display problems, all ok!
Other settings for servlet zone, load balance, and more, please refer to the Apache Jserv documentation and java.apache.org Web site
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.