- 浏览: 3500481 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
wanglf1207:
EJB的确是个不错的产品,只是因为用起来有点门槛,招来太多人吐 ...
weblogic-ejb-jar.xml的元素解析 -
qwfys200:
总结的不错。
Spring Web Flow 2.0 入门 -
u011577913:
u011577913 写道也能给我发一份翻译文档? 邮件437 ...
Hazelcast 参考文档-4 -
u011577913:
也能给我发一份翻译文档?
Hazelcast 参考文档-4 -
songzj001:
DbUnit入门实战
Install & Configure LB on Apache (Steps using Glassfish v2ur1 & Apache 2.0.59 on
- 博客分类:
- Java
Install & Configure LB on Apache (Steps using Glassfish v2ur1 & Apache 2.0.59 on Windows)
In Glassfish 9.1.1, LB installation was done using the AS installer. The installer would edit the Apache config files as well. But, Glassfish v2 ur1 does not have LB bundled with it. The users will have to download the LB and manually configure it. Hence this blog, which gives you detailed steps to install LB and configure it with Apache. If you are using the Sun WebServer, the steps are available here
Install Apache with SSL
[ http://www.neilstuff.com/apache/apache2-ssl-windows.htm]
-
Use OpenSSL from the system (already installed)
-
Download bits from: http://archive.apache.org/dist/httpd/binaries/win32/apache_2.0.59-win32-x86-openssl-0.9.7j.msi <download-dir>
-
Double click the msi file for installation [ Remember to give the fully qualified machine name for ServerName
-
Backup httpd.conf & ssl.conf from <apache-install>/conf
-
Uncomment LoadModule ssl_module modules/mod_ssl.so in httpd.conf
-
Remove the <IfDefine SSL> and matching </IfDefine> lines in ssl.conf
-
Creating Security Certificate
-
Download openssl.cnf to <download-dir> from http://tud.at/programm/openssl.cnf
-
openssl req -config <download-dir>/openssl.cnf -new -x509 -keyout newreq.pem -out newreq.pem -days 365 {Make sure WS instance-name/lb device-host/common-name for certificate are the same}
-
mkdir <apache-install>/conf/ssl.crt and <apache-install>/conf/ssl.key
-
Create the the certificate file as <apache-install>/conf/ssl.crt/server.crt copying from BEGIN CERTIFICATE to END CERTIFICATE from newreq.pem
-
openssl rsa -in newreq.pem -out <apache-install>/conf/ssl.key/server.key
-
Edit <apache-install>/conf/ssl.conf
-
set the virtual host name to fully qualified m/c name [replace "_default_" with fully qualified m/c name ]
-
Change server name to the fully qualified machine name followed by port number
-
-
Start Apache in secure mode
-
<apache-install>/bin/Apache -k stop & <apache-install>/bin/Apache -k startssl
-
Make sure the localhost:80 & localhost:443 are accessible in a browser
-
check the <apache-install>/logs/errors to make sure there are no errors. {File does not exist: <apache-install>/htdocs/favicon.ico Is a harmless error if it appears in the log .}
Install Glassfish v2ur1.
-
Download bits from http://www.java.net/download/javaee5/v2ur1/promoted/Windows/glassfish-installer-v2ur1-b09d-windows.jar
-
java -Xmx256m -jar glassfish-installer-v2ur1-b09d-windows.jar - to unbundle glassfish.
-
cd glassfish
-
chmod -R +x lib/ant/bin
-
lib/ant/bin/ant -f setup-cluster.xml [You might need to set the ANT_HOME to glassfish/lib/ant]
Install LB Plugin.
-
Download latest LB plugin from http://download.java.net/javaee5/external/WINNT/aslb/jars/ [e.g aslb-9.1.1-b6.jar]
-
Extract jar to get SUNWaspx.zip SUNWaslb.zip
-
mkdir glassfish/lib/plugin
-
cp the zips from step 2 and unzip it in glassfish/lib/plugin [ make sure to remove the zip files from this directory]
-
chmod -R 755 glassfish/lib/plugin/lib
Configure LB Plugin for Apache.
-
Create sub-directories in <Apache-install>/modules directory as - resource and errorpages
-
Create sub-directory in <Apache-install> directory as - sec_db_files
-
cp <glassfish>/lib/plugin/lib/webserver-plugin/windows/apache2/LBPlugin*.res <Apache-install>/modules/resource/
-
cp <glassfish>/lib/plugin/lib/webserver-plugin/windows/apache2/mod_loadbalancer.dll <Apache-install>/modules/
-
cp <glassfish>/lib/plugin/lib/webserver-plugin/windows/apache2/errorpages/* <Apache-install>/modules/errorpages/
-
cp <glassfish>/lib/plugin/lib/install/templates/loadbalancer.xml.example <Apache-install>/conf/
-
cp <glassfish>/lib/plugin/lib/dtds/sun-loadbalancer* <Apache-install>/conf/
-
Append httpd.conf file with:
##BEGIN EE LB Plugin Parameters LoadModule apachelbplugin_module modules/mod_loadbalancer.dll <IfModule mod_apache2lbplugin.cpp> config-file "C:/Program Files/Apache Group/Apache2/conf/loadbalancer.xml" locale en </IfModule> <VirtualHost 10.12.8.107> DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs" ServerName vm07 </VirtualHost> ##END EE LB Plugin Parameters
-
Double-check apache-install location and the fully qualified machine name for ServerName in httpd.conf
-
cp <glassfish>lib/plugin/lib/webserver-plugin/windows/apache2/*.db <Apache-install>/sec_db_files/
-
Start Apache and make sure you are able to access the port 80 & 443. The error logs will have errors till the loadbalancer.xml is setup.
Steps on How to Configure Loadbalancer.xml are here .
发表评论
-
字符串分割--java中String.split()用法
2013-03-06 14:25 74147在java.lang包中有String.sp ... -
用 HttpServletResponseWrapper 实现 Etag 过滤器
2012-07-09 16:58 3757原文出处:http://blog.chenlb.com/200 ... -
Fitnesse使用
2012-05-05 13:27 23491Fitnesse 的使用 一,介绍 Fitnesse是一种 ... -
Customizing the new FitNesse parser
2012-05-05 13:13 2133FitNesse began its life using ... -
java application中内嵌ActiveX控件
2011-11-14 15:57 5516我这里用的是SWT/JFace开发application,SW ... -
Google Java Developer Tools Downloads
2011-08-09 00:04 2346WindowBuilder Pro原来叫WindowB ... -
Jalita
2011-08-06 00:49 1565Jalita (Java light terminal ada ... -
【转】用Java写字符终端界面
2011-07-29 13:13 2120终端界面GUI开源项目charva。 这个框架让你可以用开发 ... -
[转]mybatis下的分页,支持所有的数据库
2011-07-21 13:21 14838大 家都知道,mybatis的自带分页方法只是逻 ... -
Java framework for text- & console-based forms?
2011-07-21 01:06 1709charva jcurses JNA , ... -
JNA(Java Native Access)学习入门
2011-07-21 01:04 22610Java Native Access 项目 在 ... -
JAVA上加密算法的实现用例
2011-06-25 12:38 4882来源:www.ibm.com ... -
如何将GlassFish作为Windows服务运行
2011-05-18 23:21 2370本文档来自GlassFish官方网站,详细介绍了将 G ... -
JAVA UDP打洞必备知识点---NAT
2011-05-05 12:56 8685一、引言 RFCl631 ... -
Keystore概念,Keytool工具使用
2011-04-28 16:20 2902近来由于项目需要做Single Sign On, 研究了一 ... -
利用Eclipse Profile Plugin监控分析Tomcat性能
2011-04-18 16:14 3700目前新版本的Eclipse在启动应用服务器的时候有一个新的选 ... -
m2eclipse: Eclipse is running in a JRE, but a JDK is required
2011-02-04 23:43 2537Eclipse 安装了Maven插件,启动Eclipse ... -
利用JNative实现Java调用动态库
2010-10-18 00:43 2099由于项目要求,需要用J ... -
RHEL5支持大内存
2010-10-08 16:19 3002安装 RHEL 5 ,硬件为 4G 内存,安装完成 ... -
Windows Server 2003 和 Windows 2000 提供大内存支持
2010-10-08 16:19 1854本文介绍物理地址扩展 ...
相关推荐
./configure --prefix=/usr/local/apache2.2 --enable-modules=all \ --enable-mods-shared=all --enable-proxy --enable-proxy-http --enable-so ``` 3. **编译安装**: ```bash make make install ``` ###...
VMware vSphere:Install,Configure,Manage vcp有实验手册-VSICM7-LAB-IE VMware vSphere:Install,Configure,Manage vcp有实验手册-VSICM7-LAB-IE
vmware-vsphere-install-configure-manage-v70
VMware vSphere Install Configure Manage V6.5_lab manual
3. 配置Apache:`./configure --prefix=/usr/local/apache2` 4. 编译和安装:`make`,然后`make install` 5. 创建并编辑配置文件,如`/usr/local/apache2/conf/httpd.conf`,根据需求进行配置。 6. 启动Apache:`/...
# The following configuration is an example of how to configure the # mod_plsql module for Oracle Application Express. # # Note: Please ensure that the database and the web server are properly # ...
How you configure Iscsi target using starwind free Nas software & configure Iscsi initiator on Oracle Linux 6.4
Install and configure Apache Spark with various cluster managers & on AWS Set up a development environment for Apache Spark including Databricks Cloud notebook Find out how to operate on data in Spark...
apr是Apache Portable Runtime的缩写,是一个Apache可移植运行库。编译apr需要执行以下步骤: 1. 解压apr-1.4.6.tar.gz文件 2. 进入apr-1.4.6目录,执行configure命令 3. 执行make命令 4. 执行make install命令 四...
./configure --prefix=/opt/apache2 --with-mpm=prefork --enable-rewrite --enable-ssl --enable-proxy-fcgi --with-included-apr make sudo make install ``` #### 三、配置Apache 2.4.x 1. **创建初始化...
- 编译和安装Apache:`./configure && make && make install` - 如果没有错误,Apache将被安装到系统的指定路径,如/usr/local/apache2。 - 创建Apache服务启动脚本,例如使用chkconfig或systemctl管理启动服务。...
VMware NSX Install, Configure, Manage [V6.2] Student Lab Manual
VMware_vSphere:Install、Configure、Manager_14_InstallvSphereComponents
VMware_vSphere:Install、Configure、Manager_06_Storage
重启 Apache 后,可能会弹出警告:AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.0.64. Set the 'ServerName' directive globally to suppress this ...
Apache2是世界上最流行的Web服务器软件之一,其源代码编译安装可以让你自定义配置,适应特定的系统环境和需求。本教程将详细讲解如何编译安装Apache2,并介绍相关依赖软件。 首先,我们需要下载Apache2的源代码。在...
- 使用`./configure --prefix=/opt/voip/pjsip --with-sdl=/opt/voip/sdl --with-ffmpeg=/opt/voip/ffmpeg --with-ssl=/opt/voip/ssl`进行配置。 - 执行`make dep && make clean && make`进行依赖项编译、清理及...
- 配置编译选项,使其指向Apache 2.4的安装位置,例如:`./configure --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --...
cd fileinfo && phpize && ./configure && make && make install && cd .. cd mcrypt && phpize && ./configure --with-mcrypt=/usr/local/libmcrypt/ && make && make install && cd .. cd opcache && phpize &&...
The book starts with an introduction to the Apache Spark 2.x ecosystem, followed by explaining how to install and configure Spark, and refreshes the Java concepts that will be useful to you when ...