亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

Install & Configure LB on Apache (Steps usin

系統 1885 0

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]

  1. Use OpenSSL from the system (already installed)

  2. Download bits from: http://archive.apache.org/dist/httpd/binaries/win32/apache_2.0.59-win32-x86-openssl-0.9.7j.msi <download-dir>

  3. Double click the msi file for installation [ Remember to give the fully qualified machine name for ServerName

  4. Backup httpd.conf & ssl.conf from <apache-install>/conf

  5. Uncomment LoadModule ssl_module modules/mod_ssl.so in httpd.conf

  6. Remove the <IfDefine SSL> and matching </IfDefine> lines in ssl.conf

  7. Creating Security Certificate

    1. Download openssl.cnf to <download-dir> from http://tud.at/programm/openssl.cnf

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

    3. mkdir <apache-install>/conf/ssl.crt and <apache-install>/conf/ssl.key

    4. Create the the certificate file as <apache-install>/conf/ssl.crt/server.crt copying from BEGIN CERTIFICATE to END CERTIFICATE from newreq.pem

    5. openssl rsa -in newreq.pem -out <apache-install>/conf/ssl.key/server.key

    6. Edit <apache-install>/conf/ssl.conf

      1. set the virtual host name to fully qualified m/c name [replace "_default_" with fully qualified m/c name ]

      2. Change server name to the fully qualified machine name followed by port number

Start Apache in secure mode

  1. <apache-install>/bin/Apache -k stop? & <apache-install>/bin/Apache -k startssl?

  2. Make sure the localhost:80 & localhost:443 are accessible in a browser

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

  1. Download bits from http://www.java.net/download/javaee5/v2ur1/promoted/Windows/glassfish-installer-v2ur1-b09d-windows.jar

  2. java -Xmx256m -jar glassfish-installer-v2ur1-b09d-windows.jar - to unbundle glassfish.

  3. cd glassfish

  4. chmod -R +x lib/ant/bin

  5. lib/ant/bin/ant -f setup-cluster.xml? [You might need to set the ANT_HOME to glassfish/lib/ant]

Install LB Plugin.

  1. Download latest LB plugin from http://download.java.net/javaee5/external/WINNT/aslb/jars/ [e.g aslb-9.1.1-b6.jar]

  2. Extract jar to get SUNWaspx.zip SUNWaslb.zip

  3. mkdir glassfish/lib/plugin

  4. cp the zips from step 2 and unzip it in glassfish/lib/plugin [ make sure to remove the zip files from this directory]

  5. chmod -R 755 glassfish/lib/plugin/lib

Configure LB Plugin for Apache.

  1. Create sub-directories in <Apache-install>/modules directory as - resource? and errorpages

  2. Create sub-directory in <Apache-install> directory as - sec_db_files

  3. cp <glassfish>/lib/plugin/lib/webserver-plugin/windows/apache2/LBPlugin*.res <Apache-install>/modules/resource/

  4. cp <glassfish>/lib/plugin/lib/webserver-plugin/windows/apache2/mod_loadbalancer.dll <Apache-install>/modules/

  5. cp <glassfish>/lib/plugin/lib/webserver-plugin/windows/apache2/errorpages/* <Apache-install>/modules/errorpages/

  6. cp <glassfish>/lib/plugin/lib/install/templates/loadbalancer.xml.example <Apache-install>/conf/

  7. cp <glassfish>/lib/plugin/lib/dtds/sun-loadbalancer* <Apache-install>/conf/

  8. 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
          
  9. Double-check apache-install location and the fully qualified machine name for ServerName in httpd.conf

  10. cp <glassfish>lib/plugin/lib/webserver-plugin/windows/apache2/*.db <Apache-install>/sec_db_files/

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

Install & Configure LB on Apache (Steps using Glassfish v2ur1 & Apache 2.0.59 on


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 亚洲 国产 日韩 欧美 | 中文字幕综合 | 亚洲精品乱码久久久久 | 国内免费一区二区三区视频 | 草久免费视频 | 91尤物视频在线观看 | 久热99这里只有精品视频6 | 免费观看a黄一级视频 | 四虎影院观看视频在线观看 | 日本高清视频www夜色资源网 | 国产免费不卡v片在线观看 国产免费不卡视频 | 国产成人亚洲综合小说区 | 成人午夜在线播放 | 久青草国产在线视频_久青草免 | 久草免费资源视频 | 国内精品不卡一区二区三区 | 亚洲欧洲国产成人精品 | 精品四虎免费观看国产高清午夜 | 国产成人午夜性视频影院 | 99热这里有精品 | 久久精品中文字幕免费 | 亚洲在线精品视频 | 国产精品福利视频免费观看 | 色婷婷色99国产综合精品 | 亚洲 欧美精品 | 狠狠操女人 | 福利视频中文在线观看 | 麻豆国产原创最新在线视频 | 国产真实偷人视频在线播放 | 99精品国产第一福利网站 | 国产一国产一级毛片视频 | 手机看片福利永久国产日韩 | 日本中文在线观看 | 亚洲精品成人中文网 | 一级大黄视频 | 成年女人免费观看视频 | 国产日韩精品一区在线观看播放 | 一本一本久久a久久精品综合麻豆 | 这里只有精品在线播放 | 欧美一级免费片 | 久久免费精品高清麻豆 |