WAS8.0與IHS集群安裝與配置指導手冊

WAS8.0IHS集群安裝與配置指導手冊

一、was集群架構設計

本文實驗環境:使用了4個虛擬機,其中1個虛機36.0.8.120為管理節點dmgr01,兩個受管節點was01was02,一個IHS服務器用來分發用戶過來的請求到受管節點。

二、安裝準備工作
1
、配置yum源到系統安裝光盤
#
首先掛載光盤:
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
#
其次配置yum
#cd /etc/yum.repos.d
#vi local.repo
添加如下內容: 
[Local]
name=Local
baseurl=file:///mnt/cdrom
enable=1
gpcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-RedHat-release
2
、安裝配置基礎運行環境
yum -y install compat-libstdc++    
yum -y install compat-db            
yum -y install ksh                  
yum -y install gtk2                
yum -y install gtk2-engines        
yum -y install libXp                
yum -y install libXmu              
yum -y install libXtst              
yum -y install pam                  
yum -y install rpm-build            
yum -y install elfutils            
yum -y install elfutils-libs        
yum -y install libXft              
yum -y install libstdc++            
yum -y install compat-db.i686      
yum -y install gtk2.i686            
yum -y install gtk2-engines.i686    
yum -y install libXp.i686          
yum -y install libXmu.i686          
yum -y install libXtst.i686        
yum -y install pam.i686            
yum -y install elfutils-libs.i686  
yum -y install libXft.i686          
yum -y install libstdc++.i686      
yum -y install elfutils-devel.i686  
3
、停止iptablesselinux服務
# service iptables stop                
# service ip6tables stop              
# chkconfig iptables off              
# chkconfig ip6tables off  
#
修改selinuxdisabled
setenforce 0
#vi /etc/selinux/config  
SELINUX=enforcing改為SELINUX=disabled

三、安裝WAS
1
、設置xmanager
配置圖形渲染ip
export DISPLAY=36.0.8.57:0.0  
2
、運行xclock命令
顯示小時鐘插件代表配置正確  
3
、安裝IM
cd /soft/imforlinux
jar -xvf *
chmod u+x install 
chmod -R 755 ./*
./install
按照嚮導安裝即可
4
、安裝was軟件
啟動IM
/opt/IBM/InstallationManager/eclipse
./launcher    
解壓was安裝介質
cd /soft/was_ins
jar -xvf CZM9KML.zip  
jar -xvf CZM9LML.zip  
jar -xvf CZM9MML.zip
jar -xvf CZVG4ML.zip
5
、為was打補丁同步驟4
6
、以dmgr01克隆虛擬機webapp1webapp2
7
、在dmgr01上創建管理節點dmgr01
cd /app/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -create -templatePath /app/IBM/WebSphere/AppServer/profileTemplates/dmgr -profileName dmgr01 -profilePath /app/IBM/WebSphere/AppServer/profiles/dmgr01
8
、在webapp1webapp2上創建node節點
cd /app/IBM/WebSphere/AppServer/bin
./manageprofiles.sh -create -templatePath /app/IBM/WebSphere/AppServer/profileTemplates/managed -profileName webapp01 -profilePath /app/IBM/WebSphere/AppServer/profiles/webapp01
./manageprofiles.sh -create -templatePath /app/IBM/WebSphere/AppServer/profileTemplates/managed -profileName webapp02 -profilePath /app/IBM/WebSphere/AppServer/profiles/webapp02
./manageprofiles.sh -create -templatePath /app/IBM/WebSphere/AppServer/profileTemplates/managed -profileName webapp03 -profilePath /app/IBM/WebSphere/AppServer/profiles/webapp03
9
、添加受管理節點至管理節點
首先檢查各節點是否已經創建
#./manageprofiles.sh -listProfiles
在任意受管理節點執行如下命令:
./addNode.sh dmgr01 8879

四、配置集群及IHS服務
1
、登錄console
https://36.0.8.120:9043/ibm/console/
通過consoleappserver集群嚮導配置app集群
2
、安裝IHS
jar -xvf CZM91ML.zip;jar -xvf CZM94ML.zip;jar -xvf CZM95ML.zip;jar -xvf CZXR9ML.zip
12
、確保已經安裝IM
在安裝ihsplugin時如果將ihsplugin單獨部署請務必安裝toolbox,該工具為配置plugin的工具
3
、使用Toolbox配置plugin
cd /ihs/IBM/WebSphere/Toolbox/WCT
sh wct.sh
彈出圖形化界面進行plugin配置
4
、按照嚮導配置完成後,拷貝剛剛配置完成的文件到dmgr
cd  /ihs/IBM/WebSphere/Plugins/bin
scp configurewebserver1.sh root@dmgr01:/app/IBM/WebSphere/AppServer/profiles/dmgr01/bin
dmgr01上執行
./configurewebserver1.sh
此時通過wasconsole口登錄後刷新界面點擊web服務器即可看到我們剛才添加的ihs服務器了~
5
、重新配置IHS管理員密碼
cd /ihs/IBM/HTTPServer/bin
./htpasswd -cm ../conf/admin.passwd ihsadmin
6
、重新啟動admin server
./adminctl start
7
、使用wasconsole口管理ihs的啟停,生成插件、傳播插件
8
、本次我們搭建的環境為集群所以還必須登錄wasconsole口後設置:更新全局 Web 服務器插件配置並負責更新後的配置文件到ihs服務器
scp /app/IBM/WebSphere/AppServer/profiles/dmgr01/config/cells/plugin-cfg.xml  root@ihs02:/ihs/IBM/WebSphere/Plugins/config/webserver1/

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營