欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

ApacheweblogicCluster管理session復(fù)制gzip壓縮

所需軟件:
jdk-6u24-linux-x64.bin
wls1036_generic.jar
WLSPlugin1.1-11gR1PS3.zip(weblogic插件)
httpd-2.2.17.tar.gz

鳳慶網(wǎng)站建設(shè)公司成都創(chuàng)新互聯(lián)公司,鳳慶網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為鳳慶千余家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)營銷網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的鳳慶做網(wǎng)站的公司定做!

下載地址:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
http://labs.renren.com/apache-mirror/httpd/

前端Apache:192.168.1.30
后端Weblogic:192.168.1.31,192.168.1.32
一、weblogic安裝配置
1、 java環(huán)境設(shè)置:
chmod u+x jdk-6u24-linux-x64.bin
sh jdk-6u24-linux-x64.bin
編輯/etc/profile文件最后加入:

exportJAVA_HOME=/opt/java/jdk1.6.0_24 exportJAVA_VENDOR=Sun exportPATH=$JAVA_HOME/bin:$PATH exportCLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CLASSPATH

source /etc/profile 重新加載環(huán)境變量

2、 weblogic安裝:
/opt/java/jdk1.6.0_24/bin/java -jar wls1036_generic.jar
(1)選擇安裝的主目錄、取消安全更新、
(2)根據(jù)情況去掉Oracle Coherence、指定java開發(fā)工具路徑
(3) 指定wlserver路徑

3、創(chuàng)建域,指定項目工程,設(shè)置weblogic控制臺賬號,選擇產(chǎn)品模式以及java開發(fā)工具,設(shè)置服務(wù)器偵聽ip和端口
sh /opt/weblogic/wlserver_10.3/common/bin/config.sh
注意:如果是控制節(jié)點選擇第一項,如果是被控節(jié)點選擇第二項

1|Administration Server [ ]

2|Managed Servers, Clusters and Machines [ ]

3|RDBMS Security Store [ ]

4、設(shè)置啟動腳本密碼自動驗證:
創(chuàng)建目錄/opt/weblogic/user_projects/domains/kygd/servers/AdminServer/security
在該目錄下新建文件:boot.properties 內(nèi)容如下:
username=xxx 9001登錄后臺帳號
password=xxx

5、修改nodemanager配置文件如下:
vim /opt/weblogic/wlserver_10.3/common/nodemanager/nodemanager.properties

DomainsFile=/opt/weblogic/wlserver_10.3/common/nodemanager/nodemanager.domains LogLimit=0 PropertiesVersion=10.3 DomainsDirRemoteSharingEnabled=false javaHome=/opt/java/jdk1.6.0_24 AuthenticationEnabled=true NodeManagerHome=/opt/weblogic/wlserver_10.3/common/nodemanager JavaHome=/opt/java/jdk1.6.0_24/jre LogLevel=INFO DomainsFileEnabled=true StartScriptName=startWebLogic.sh ListenAddress= NativeVersionEnabled=true ListenPort=5558 LogToStderr=true SecureListener=false#修改為false,關(guān)閉ssl驗證,默認(rèn)為True LogCount=1 DomainRegistrationEnabled=false StopScriptEnabled=false QuitEnabled=false LogAppend=true StateCheckInterval=500 CrashRecoveryEnabled=false StartScriptEnabled=false LogFile=/opt/weblogic/wlserver_10.3/common/nodemanager/nodemanager.log LogFormatter=weblogic.nodemanager.server.LogFormatter ListenBacklog=50

6、啟動關(guān)閉weblogic控制臺和nodemanager
nohup /opt/weblogic/user_projects/domains/super/startWebLogic.sh > /dev/null 2>&1 啟動控制臺
nohup /opt/weblogic/wlserver_10.3/server/bin/startNodeManager.sh >/dev/null 2>&1啟動節(jié)點管理器
nohup /opt/weblogic/user_projects/domains/super/bin/stopWebLogic.sh >/dev/null 2>&停止控制臺

注意:修改下nodemanager啟動腳本,保證權(quán)限一致性(允許其他用戶可讀)sed -i \'/umask 027/s/027/022/g\'/opt/weblogic/wlserver_10.3/server/bin/startNodeManager.sh

二、weblogic集群配置:
1、 新建計算機,選擇普通類型,指定nodemanager管理地址和端口
2、 新建集群,指定集群名,選擇單點傳送
3、 新建服務(wù)器,指定所屬集群和計算機
4、 服務(wù)器參數(shù)修改:
修改服務(wù)器啟動參數(shù)加入: -Xms2048m -Xmx2048m -XX:MaxPermSize=256m
Xms內(nèi)存初始值Xmx內(nèi)存值
MaxPermSize:PermGen(class和meta存放區(qū)域)區(qū)域內(nèi)存值

5、利用NM部署節(jié)點:
啟動shell腳本:sh /opt/weblogic/wlserver_10.3/common/bin/wlst.sh
連接控制端并同步相關(guān)信息:
connect(\'super\',\'weblogicpass\',\'t3://192.168.1.31:8001\')
nmEnroll(\'/opt/weblogic/user_projects/domains/super\')
如果按照如上操作,然后啟動每個服務(wù)器nodemanager,檢查集群中node狀態(tài)正常的話,集群便配置完成。

三、weblogic集群中部署應(yīng)用程序:
1、 開發(fā)部將應(yīng)用打成war包后,由運維部傳到集群中的一個node節(jié)點。
2、 登陸weblogic管理后臺,部署->安裝->選擇war包->將此部署安裝為應(yīng)用程序->選擇集群所有服務(wù)器->將此應(yīng)用程序復(fù)制到每個目標(biāo)->完成。
3、 啟動應(yīng)用程序,測試訪問
4、 集群session復(fù)制配置
在工程部署之前需要在工程下面WEB-INF目錄下新建weblogic.jsp頁面,內(nèi)容如下:

/ replicated_if_clusteredtrue true1true true UTF-8 /

部署完后,啟動工程應(yīng)用就可以了。

四、Apache和weblogic整合,前端apache后端weblogic
1、 apache安裝

tarzxvfhttpd-2.2.17.tar.gz cdhttpd-2.2.17 ./configure--prefix=/opt/apache--enable-mod-shared=most--enable-module=so--enable-so--enable-rewrite--enable-deflate=shared--enable-headers=shared--enable-expires--enable-rule=SHARED_CORE--enable-rewrite=shared--enable-cache--enable-disk-cache--enable-mem-chache--enable-include=shared make&&makeinstall

2、 weblogic插件安裝:
解壓:

unzipWLSPlugin1.1-11gR1PS3.zip unzipWLSPlugin11g-64bit-Apache2.2-linux64-x86_64.zip

拷貝lib下文件到apache主目錄下的lib目錄中,同時拷貝mod_wl.so到apache目錄下modules目錄中

小竅門:默認(rèn)weblogic安裝目錄/opt/weblogic/wlserver_10.3/server/plugin下也有相應(yīng)庫文件

3、修改主配置文件,添加模塊,設(shè)置虛擬主機
在主配置文件加入如下幾行:

LoadModuleinclude_modulemodules/mod_include.so LoadModuleheaders_modulemodules/mod_headers.so LoadModuleweblogic_modulemodules/mod_wl.so

Includeconf/extra/httpd-vhosts.conf#去掉這行之前的#號

#設(shè)置過期時間 ExpiresActiveOn ExpiresByTypetext/css"accessplus1months" ExpiresByTypeimage/gif"accessplus1months" ExpiresByTypeimage/jpeg"accessplus1months" ExpiresByTypeimage/png"accessplus1months" EXpiresByTypeapplication/x-shockwave-flash"accessplus1months" EXpiresByTypeapplication/x-javascript"accessplus1months" ExpiresByTypevideo/x-flv"accessplus1months" #設(shè)置壓縮參數(shù) DeflateCompressionLevel3 AddOutputFilterDEFLATEhtmlxmlphpjscss SetOutputFilterDEFLATE BrowserMatch^Mozilla/4gzip-only-text/html BrowserMatch^Mozilla/4\\.0[678]no-gzip BrowserMatch\\bMSIE!no-gzip!gzip-only-text/html SetEnvIfNoCaseRequest_URI\\\\.(?:gif|jpe?g|png)$no-gzipdont-vary SetEnvIfNoCaseRequest_URI.(?:exe|t?gz|zip|bz2|sit|rar)$no-gzipdont-vary SetEnvIfNoCaseRequest_URI.(?:pdf|mov|avi|mp3|mp4|rm)$no-gzipdont-vary HeaderappendVaryUser-Agentenv=!dont-vary

修改/opt/apache/conf/extra/httpd-vhosts.conf文件內(nèi)容如下:

ServerAdmincecnck@gmail.com #設(shè)置集群 WebLogicCluster192.168.1.31:51001,192.168.1.31:51002,192.168.1.32:51001,192.168.1.32:51002 DynamicServerListON#后端服務(wù)器輪訓(xùn),并故障診斷 KeepAliveEnabledON DebugON DebugConfigInfoOFF WLLogFile/opt/apache/logs/wl_proxy_log SetHandlerweblogic-handler#交由weblogic處理 ServerNamewww.test.com ErrorLog"logs/www_error_log" CustomLog"logs/www_access_log"common

五、weblogic常用注意事項:
1、nodemanager啟動CPU 負載過高,日志報錯信息:
Exception in thread "[STANDBY] ExecuteThread: \'3\' for queue: \'weblogic.kernel.Default (self-tuning)\'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[ACTIVE] ExecuteThread: \'4\' for queue: \'weblogic.kernel.Default (self-tuning)\'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: \'6\' for queue: \'weblogic.kernel.Default (self-tuning)\'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[ACTIVE] ExecuteThread: \'1\' for queue: \'weblogic.kernel.Default (self-tuning)\'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[ACTIVE] ExecuteThread: \'2\' for queue: \'weblogic.kernel.Default (self-tuning)\'" java.lang.OutOfMemoryError: PermGen space
Exception in thread "[STANDBY] ExecuteThread: \'5\' for queue: \'weblogic.kernel.Default (self-tuning)\'"
java.lang.OutOfMemoryError: PermGen space

解決方法:
域–>環(huán)境–>服務(wù)器–>控制–>節(jié)點–>服務(wù)器啟動加入
參數(shù)加入-Xms2048m -Xmx2048m -XX:MaxPermSize=256m
2、NM部署節(jié)點時不能連接控制端

解決方法:
設(shè)置hostname,并修改/etc/hosts文件保證各個server主機名一致
例如:
192.168.1.31 web31
192.168.1.32 web32

本文標(biāo)題:ApacheweblogicCluster管理session復(fù)制gzip壓縮
本文鏈接:http://chinadenli.net/article30/cpdiso.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站導(dǎo)航移動網(wǎng)站建設(shè)、App開發(fā)、外貿(mào)網(wǎng)站建設(shè)軟件開發(fā)、網(wǎng)站收錄

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運營