【正文】
如果未來在運(yùn)行過程中出現(xiàn)“Out of memory”這樣的錯誤,再在此位置選中該選擇框。點(diǎn)擊“確定”:映射配置別名選“DefaultPrincipalMapping”,保存設(shè)置,然后在如下頁面上,選中“TC”,然后點(diǎn)擊“測試連接”:“QC”. 應(yīng)用包發(fā)布(二進(jìn)制bin方式)傳到/tmp目錄下,在左邊的菜單欄目中點(diǎn)擊“應(yīng)用程序 應(yīng)用程序類型WebSphere企業(yè)應(yīng)用程序”,頁面上點(diǎn)擊“安裝”,如下圖:點(diǎn)“安裝”按鈕,選擇“遠(yuǎn)程文件系統(tǒng)”,并在“完整路徑”一欄輸入(或選擇)“/tmp/”,點(diǎn)擊“下一步”:選擇應(yīng)用,選擇“快速路徑…”點(diǎn)擊“下一步”:選擇“快速路徑…”,應(yīng)用程序名輸入“app”,點(diǎn)擊“下一步”:輸入應(yīng)用程序名為app,選擇模塊,點(diǎn)擊“下一步”:選擇模塊,選擇“Web模塊”和“虛擬主機(jī)”,點(diǎn)擊“下一步”:選擇“Web模塊”和虛擬主機(jī),輸入上下文根“/app”輸入上下文根“/app”,點(diǎn)擊“完成”:點(diǎn)“完成”,點(diǎn)擊“保存”:點(diǎn)“保存”。請確認(rèn)已經(jīng)執(zhí)行過上一步后,再點(diǎn)擊“Next”:,確認(rèn)WAS的安裝目錄為“/websphere/AppServer”,點(diǎn)擊“Next”:目錄為“websphere/AppServer”,確認(rèn)選擇了“Install maintenance package”,點(diǎn)擊“Next”:,確認(rèn)該目錄下的確存在補(bǔ)丁文件,即為第9)步已拷貝文件到該目錄下,或者,選擇想要安裝的補(bǔ)丁文件所在的目錄,點(diǎn)擊“Next”:注意:l 安裝補(bǔ)丁時,需要確保當(dāng)前沒有WAS進(jìn)程在運(yùn)行,使用ps –ef |grep java命令查看。“下一步”,分別對應(yīng)兩應(yīng)用服務(wù)主機(jī),各一個SERVER,分別名稱為app1app2集群建完后如下到系統(tǒng)管理->節(jié)點(diǎn) 中同步各節(jié)點(diǎn)啟動集群集群可正常啟動至此,兩臺應(yīng)用服務(wù)器的集群安裝完畢!七、 安裝WEB服務(wù)器33機(jī)安裝HTTP SERVER與PLUGINS插件程序安裝包在/_install目錄下,解壓解包后,執(zhí)行_ins/ihs/,用xmanager來執(zhí)行該文件進(jìn)行安裝。[rootAPP1 bin] cd Profiles/AppSrv01/bin[rootAPP1 bin] ./節(jié)點(diǎn)代理啟動ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/nodeagent/ADMU0128I: Starting tool with the AppSrv01 profileADMU3100I: Reading configuration for server: nodeagentADMU3200I: Server launched. Waiting for initialization status.ADMU3000I: Server nodeagent open for ebusiness。 Minimum 1 GB physical memory remended Red Hat Enterprise Linux ES, Version 4 with Update 6 確認(rèn)管理域之內(nèi)的所有的機(jī)器主機(jī)名和ip地址相互能夠ping通在安裝前,要確保四臺機(jī)的/etc/hosts文件里面增加四臺機(jī)的ip與主機(jī)名,修改如下**.**.**.1 app1**.**.**.2 app2**.**.**.3 web1**.**.**.4 web2(對于初次安裝系統(tǒng)后的主機(jī),因?yàn)闆]有在HOSTS文件中增加此類記錄,會導(dǎo)致安裝失敗,現(xiàn)象是安裝后生成的profiles不完整,啟動不了管理服務(wù)。n 但最小要保證一個集群至少包括2個WAS實(shí)現(xiàn),并且這兩個實(shí)例分別在不同的物理服務(wù)器上,這樣才能保證不出現(xiàn)單點(diǎn)故障。n 基于應(yīng)用部署要求,為每個應(yīng)用建立一個集群,邏輯上實(shí)現(xiàn)應(yīng)用之間的隔離。三、 安裝前系統(tǒng)檢查252。252。 SUSE Linux Enterprise Server product siteHardware Requirements process id is 32586Server port number is:9060IVTL0010I: Connecting to the APP1 WebSphere Application Server on port: 9060IVTL0015I: WebSphere Application Server APP1 is running on port: 9060 for profile Dmgr01IVTL0035I: The Installation Verification Tool is scanning the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/ file for errors and warnings.[11/2/09 23:27:40:343 CST] 00000000 WSKeyStore W CWPKI0041W: One or more key stores are using the default password.[11/2/09 23:27:42:466 CST] 00000000 ThreadPoolMgr W WSVR0626W: The ThreadPool setting on the ObjectRequestBroker service is deprecated.IVTL0040I: 2 errors/warnings are detected in the /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/ fileIVTL0070I: The Installation Verification Tool verification succeeded.IVTL0080I: The installation verification is plete.上述顯示說明安裝正常,DMGR服務(wù)可正常啟動。(至app2機(jī)上的profiles/appsvr01/bin下執(zhí)行./ server1也可)六、 兩應(yīng)用服務(wù)器建集群。兩個都創(chuàng)建完畢后。如果沒有從/websphere/IBM/WebSphere/AppServer目錄下發(fā)起的java進(jìn)程,則未運(yùn)行),則啟動WebSphere應(yīng)用服務(wù)器運(yùn)行實(shí)例, 運(yùn)行命令:用wsuser用戶cd / websphere/AppServer/ profiles/AppSrv01/bin/./ server1username wasadmin password was123,通過瀏覽器進(jìn)行管理WebSphere服務(wù)器://*.*.*.*:9060/admin,選擇資源 JDBC JDBC 提供程序選擇JDBC提供程序“新建”,服務(wù)器名=server1“作用域”到服務(wù)器級別,并點(diǎn)擊“新建”按鈕,創(chuàng)建JDBC Driver“DB2”,提供程序類型“DB2 Universal JDBC Driver Provider”,實(shí)施類型“連接池數(shù)據(jù)源”,接受自動的名稱和描述,點(diǎn)擊“下一步”:“輸入數(shù)據(jù)庫類路徑信息”頁面上,設(shè)置如下圖所示的兩個JDBC Driver安裝目錄環(huán)境變量為“/home/