WAS中介軟體水平叢集安裝
一 準備工作
1 拓撲結構
角色 |
I p |
作業系統 |
主機名 |
元件 |
主機 |
192.1.240.10 |
Red Hat 5.4 |
cjc1 |
M aster,ncMember01,HTTP Server |
從機 |
192.1.240.11 |
Red Hat 5.4 |
cjc2 |
ncMember02,ncMember03 |
2 安裝所需介質
主機:
[root@was1 was6_linux]# pwd /home/was6_linux [root@was1 was6_linux]# ll -rth total 1.4G -rw-r--r-- 1 root root 106M Jul 31 2014 7.0.0.17-WS-UPDI-LinuxAMD64.tar.gz -rw-r--r-- 1 root root 58M Sep 8 13:39 6.1.0-WS-WASSDK-LinuxX64-FP0000031.pak -rw-r--r-- 1 root root 382M Sep 8 13:44 Was61[1].Linux64.Disk2.zip -rw-r--r-- 1 root root 463M Sep 8 13:46 Was61[1].Linux64.Disk1.zip -rw-r--r-- 1 root root 419M Sep 8 13:46 6.1.0-WS-WAS-LinuxX64-FP0000031.pak
從機:
[root@was2 was6_linux]# ll -rth total 1.4G -rwxr-xr-x 1 root root 58M Sep 8 13:39 6.1.0-WS-WASSDK-LinuxX64-FP0000031.pak -rw-r--r-- 1 root root 382M Sep 8 13:44 Was61[1].Linux64.Disk2.zip -rw-r--r-- 1 root root 463M Sep 8 13:46 Was61[1].Linux64.Disk1.zip -rwxr-xr-x 1 root root 419M Sep 8 13:46 6.1.0-WS-WAS-LinuxX64-FP0000031.pak -rw-r--r-- 1 root root 106M Sep 10 08:58 7.0.0.17-WS-UPDI-LinuxAMD64.tar.gz
其中:
Was61[1].Linux64.Disk1.zip是WAS安裝包, Was61[1].Linux64.Disk2.zip是WAS工具安裝包, 7.0.0.17-WS-UPDI-LinuxAMD64.tar.gz補丁安裝工具包, 6.1.0-WS-WAS-LinuxX64-FP0000031.pak,6.1.0-WS-WASSDK-LinuxX64-FP0000031.pak是補丁包;
3 確保主從機器網路互通
主機:
[root@was1 was6_linux]# cat /etc/hosts 10.1.240.10 was1 10.1.240.11 was2
從機:
[root@was2 was6_linux]# cat /etc/hosts 10.1.240.10 was1 10.1.240.11 was2
[root@was1 was6_linux]# ping was1 -c 1 PING was1 (127.0.0.1) 56(84) bytes of data. 64 bytes from was1 (127.0.0.1): icmp_seq=1 ttl=64 time=0.018 ms --- was1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.018/0.018/0.018/0.000 ms [root@was1 was6_linux]# ping was2 -c 1 PING was2 (10.1.240.11) 56(84) bytes of data. 64 bytes from was2 (10.1.240.11): icmp_seq=1 ttl=64 time=1.32 ms --- was2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.321/1.321/1.321/0.000 ms
4 安裝所需安裝包
5 確保主機和從機時間同步
(1) 設定主從登入免密碼
主機was1 :生成公鑰和私鑰
[root@was1 ~]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 5a:d9:73:2a:a5:32:98:18:ea:b2:1e:fc:2f:fe:94:c9 root@was1
(2)將主機公鑰傳送到從機
[root@was1 .ssh]# scp id_rsa.pub was2:/root/.ssh/
從機was2:建立 authorized_keys ,將公鑰資訊追加到 authorized_keys 檔案中
[root@was2 .ssh]# touch authorized_keys [root@was2 .ssh]# chmod 600 /root/.ssh/authorized_keys [root@was2 .ssh]# cat id_rsa.pub >> authorized_keys
主機 was1 :主機登入從機 was2 不需要密碼,同理可以配置從機登入主機免密碼
[root@was1 .ssh]# ssh was2 ls anaconda-ks.cfg cc.txt Desktop id_rsa.pub install.log install.log.syslog pwd vpd.properties
(2) 確保主從時間同步
[root@was1 .ssh]# date;ssh was2 date Thu Sep 10 09:49:20 CST 2015 Thu Sep 10 09:49:19 CST 2015
二 安裝WAS
1 主從解壓安裝包
主機:
[root@was1 ~]# cd /home/was6_linux/ [root@was1 was6_linux]# unzip Was61\[1\].Linux64.Disk1.zip [root@was1 was6_linux]# unzip Was61\[1\].Linux64.Disk2.zip [root@was1 was6_linux]# tar -zxvf 7.0.0.17-WS-UPDI-LinuxAMD64.tar.gz
從機:
[root@was2 ~]# cd /home/was6_linux/ [root@was2 was6_linux]# unzip Was61\[1\].Linux64.Disk1.zip [root@was2 was6_linux]# unzip Was61\[1\].Linux64.Disk2.zip [root@was2 was6_linux]# tar -zxvf 7.0.0.17-WS-UPDI-LinuxAMD64.tar.gz
2 開始安裝
WAS
主機:
[root@was1 was6_linux]# cd WASV61_ND_LINX64/WAS/
[root@was1 WAS]# ./install
EXIT 退出
從機:
[root@was2 ~]# cd /home/was6_linux/WASV61_ND_LINX64/WAS/ [root@was2 WAS]# ./install
Exit 退出
三 安裝 IBM HTTP Server
主機安裝,從機不安裝
[root@was1 ~]# cd /home/was6_linux/TOOLS_ND_LINX64/IHS/ [root@was1 IHS]# ./install
四 安裝Plugin
主機安裝,從機不安裝
[root@was1 ~]# cd /home/was6_linux/TOOLS_ND_LINX64/plugin/ [root@was1 plugin]# ./install
五 安裝WAS 補丁
主機,從機都需要打補丁
主機:
1 安裝補丁工具
[root@was1 ~]# cd /home/was6_linux/UpdateInstaller/ [root@was1 UpdateInstaller]# ./install
主機有三部分需要打補丁,而從機只有AppServer
[root@was1 was6_linux]# cp 6.1.0-WS-WAS-LinuxX64-FP0000031.pak 6.1.0-WS-WASSDK-LinuxX64-FP0000031.pak /opt/IBM/WebSphere/UpdateInstaller/maintenance/
驗證失敗,需要停止所有應用
[root@was1 bin]# ./stopManager.sh ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/stopServer.log ADMU0128I: Starting tool with the Dmgr01 profile ADMU3100I: Reading configuration for server: dmgr ADMU3201I: Server stop request issued. Waiting for stop status. ADMU4000I: Server dmgr stop completed.
BACK-NEXT 重新驗證
為Plugins 安裝補丁
為HTTP Server 安裝補丁
所有元件都打完補丁後,按Finish 完成退出
從機:
1 安裝補丁工具
[root@was2 ~]# cd /home/was6_linux/UpdateInstaller/ [root@was2 UpdateInstaller]# ./install
[root@was2 was6_linux]# cp 6.1.0-WS-WAS-LinuxX64-FP0000031.pak 6.1.0-WS-WASSDK-LinuxX64-FP0000031.pak /opt/IBM/WebSphere/UpdateInstaller/maintenance/
驗證失敗,需要停止所有應用
[root@was2 was6_linux]# cd /opt/IBM/WebSphere/AppServer/bin/ [root@was2 bin]# ./stopServer.sh server1 ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/stopServer.log ADMU0128I: Starting tool with the AppSrv01 profile ADMU3100I: Reading configuration for server: server1 ADMU3201I: Server stop request issued. Waiting for stop status. ADMU4000I: Server server1 stop completed. [root@was2 bin]# ps -ef|grep less root 19145 2909 0 13:00 pts/2 00:00:00 grep less
BACK-NEXT 重新驗證
只有一個AppServer
取消,退出安裝
六 配置主從節點關係
1 主從節點聯合
主機啟動DM
[root@was1 ~]# cd /opt/IBM/WebSphere/AppServer/bin/ [root@was1 bin]# ./startManager.sh ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/startServer.log ADMU0128I: Starting tool with the Dmgr01 profile ADMU3100I: Reading configuration for server: dmgr ADMU3200I: Server launched. Waiting for initialization status. ADMU3000I: Server dmgr open for e-business; process id is 20818
從機啟動 Server
[root@was2 bin]# ./startServer.sh server1 ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.log ADMU0128I: Starting tool with the AppSrv01 profile ADMU3100I: Reading configuration for server: server1 ADMU3200I: Server launched. Waiting for initialization status. ADMU3000I: Server server1 open for e-business; process id is 30385
執行addNode.sh進行節點聯合
主機:
主機在安裝“單元 (Deployment Manager 和受管節點 ) ”是節點已經和 DM 管理,不需要額外執行 addNode.sh
[root@was1 bin]# ./addNode.sh was1 8879 ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/addNode.log ADMU0128I: Starting tool with the Dmgr01 profile CWPKI0308I: Adding signer alias "dummyclientsigner" to local keystore "ClientDefaultTrustStore" with the following SHA digest: 0B:3F:C9:E0:70:54:58:F7:FD:81:80:70:83:A6:D0:92:38:7A:54:CD CWPKI0308I: Adding signer alias "dummyserversigner" to local keystore "ClientDefaultTrustStore" with the following SHA digest: FB:38:FE:E6:CF:89:BA:01:67:8F:C2:30:74:84:E2:40:2C:B4:B5:65 ADMU0001I: Begin federation of node was1CellManager01 with Deployment Manager at was1:8879. ADMU0001I: Begin federation of node was1CellManager01 with Deployment Manager at was1:8879. ADMU0009I: Successfully connected to Deployment Manager Server: was1:8879 ADMU0033E: The node was1CellManager01 already has been added to the cell. ADMU0027E: An error occurred during federation ADMU0033E: The node was1CellManager01 already has been added to the cell.; rolling back to original configuration. ADMU0211I: Error details may be seen in the file: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/addNode.log ADMU0111E: Program exiting with error: com.ibm.ws.management.tools.DoNotDoAddNodeException: ADMU0033E: The node was1CellManager01 already has been added to the cell. ADMU1211I: To obtain a full trace of the failure, use the -trace option. ADMU0211I: Error details may be seen in the file: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/addNode.log
從機:
[root@was2 bin]# pwd /opt/IBM/WebSphere/AppServer/bin [root@was2 bin]# ./addNode.sh was1 8879 ADMU0116I: Tool information is being logged in file /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/addNode.log ADMU0128I: Starting tool with the AppSrv01 profile CWPKI0309I: All signers from remote keystore already exist in local keystore. ADMU0001I: Begin federation of node was2Node01 with Deployment Manager at was1:8879. ADMU0001I: Begin federation of node was2Node01 with Deployment Manager at was1:8879. ADMU0009I: Successfully connected to Deployment Manager Server: was1:8879 ADMU0505I: Servers found in configuration: ADMU0506I: Server name: server1 ADMU2010I: Stopping all server processes for node was2Node01 ADMU0512I: Server server1 cannot be reached. It appears to be stopped. ADMU0024I: Deleting the old backup directory. ADMU0015I: Backing up the original cell repository. ADMU0012I: Creating Node Agent configuration for node: was2Node01 ADMU0014I: Adding node was2Node01 configuration to cell: was1Cell01 ADMU0016I: Synchronizing configuration between node and cell. ADMU0018I: Launching Node Agent process for node: was2Node01 ADMU0020I: Reading configuration for Node Agent process: nodeagent ADMU0022I: Node Agent launched. Waiting for initialization status. ADMU0030I: Node Agent initialization completed successfully. Process id is: 31474 ADMU9990I: ADMU0300I: The node was2Node01 was successfully added to the was1Cell01 cell. ADMU9990I: ADMU0306I: Note: ADMU0302I: Any cell-level documents from the standalone was1Cell01 configuration have not been migrated to the new cell. ADMU0307I: You might want to: ADMU0303I: Update the configuration on the was1Cell01 Deployment Manager with values from the old cell-level documents. ADMU9990I: ADMU0306I: Note: ADMU0304I: Because -includeapps was not specified, applications installed on the standalone node were not installed on the new cell. ADMU0307I: You might want to: ADMU0305I: Install applications onto the was1Cell01 cell using wsadmin $AdminApp or the Administrative Console. ADMU9990I: ADMU0003I: Node was2Node01 has been successfully federated.
2 進入控制檯配置叢集結構
檢視控制檯埠
[root@was1 logs]# pwd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/logs [root@was1 logs]# vim AboutThisProfile.txt Application server environment to create: Cell Deployment manager Location: /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 Disk space required: 30 MB Profile name: Dmgr01 Make this profile the default: True Cell name: was1Cell01 Node name: was1CellManager01 Host name: was1 Enable administrative security (recommended): False Administrative console port: 9060 Administrative console secure port: 9043 Bootstrap port: 9809 SOAP connector port: 8879 Run deployment manager as a service: True Create a Web server definition: False
[root@was1 Dmgr01]# firefox was1:9060/ibm/console
刪除舊的應用伺服器Server
確認刪除
刪除完成
建立叢集
叢集名為ncCluster
建立叢集第一個成員master, 節點在主機上,權重為 0
配置其他成員,ncMem01 在主機上, ncMem02,ncMem03 在從機上,權重均為 10
Next-Finish
啟動節點
節點狀態 均為 已同步
叢集狀態 已啟動
###chenjuchao 2015-09-10###
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29785807/viewspace-2941618/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- WAS中介軟體垂直叢集安裝
- 【redis叢集安裝】Redis
- zookeeper 叢集安裝
- kafka叢集安裝Kafka
- hbase叢集安裝
- StarRocks 叢集安裝
- cdh 叢集安裝
- ElasticSearch 6.6.0叢集安裝Elasticsearch
- TiDB叢集安裝TiDB
- Elasticsearch 叢集安裝部署Elasticsearch
- 【Zookeeper】zookeeper叢集安裝
- 記HBase叢集安裝
- Hadoop叢集安裝Hadoop
- Hadoop叢集安裝配置Hadoop
- kubernetes叢集安裝
- elasticsearch叢集安裝(3臺)Elasticsearch
- Storm叢集安裝與部署ORM
- ZooKeeper叢集安裝和部署
- linux ZooKeeper叢集安裝Linux
- WAS叢集安裝配置過程
- Kubernetes 叢集安裝
- redis cluster 4.0.9 叢集安裝搭建Redis
- mongo副本集叢集安裝配置Go
- K8S叢集安裝K8S
- CDH5 叢集安裝教程H5
- Hadoop 叢集安裝與配置Hadoop
- hadoop叢集安裝檔案Hadoop
- Flink(四)叢集安裝(二)
- Zookeeper介紹與叢集安裝
- k8s 叢集安裝K8S
- websphere中介軟體安裝軟體需求requirementWebUIREM
- 訊息型中介軟體之RabbitMQ叢集MQ
- Kafka叢集安裝Version2.10Kafka
- Redis概述和單機、叢集安裝Redis
- Hadoop叢集安裝詳細教程Hadoop
- ElasticSearch 2.3.3 叢集安裝+ Marvel + kibanaElasticsearch
- oracle雙機叢集安裝小結Oracle
- Redis中介軟體與Web中介軟體RedisWeb