WAS8.0与IHS集群安装与配置指导手册

一、was集群架构设计

本文实验环境:使用了4个虚拟机,其中1个虚机36.0.8.120为管理节点dmgr01,两个受管节点was01与was02,一个IHS服务器用来分发用户过来的请求到受管节点。

三、安装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克隆虚拟机webapp1和webapp2
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、在webapp1和webapp2上创建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/
通过console口appserver集群向导配置app集群
2、安装IHS
jar -xvf CZM91ML.zip;jar -xvf CZM94ML.zip;jar -xvf CZM95ML.zip;jar -xvf CZXR9ML.zip
12、确保已经安装IM
在安装ihs和plugin时如果将ihs和plugin单独部署请务必安装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
此时通过was的console口登录后刷新界面点击web服务器即可看到我们刚才添加的ihs服务器了~
5、重新配置IHS管理员密码
cd /ihs/IBM/HTTPServer/bin
./htpasswd -cm ../conf/admin.passwd ihsadmin
6、重新启动admin server
./adminctl start
7、使用was的console口管理ihs的启停,生成插件、传播插件
8、本次我们搭建的环境为集群所以还必须登录was的console口后设置:更新全局 Web 服务器插件配置并负责更新后的配置文件到ihs服务器
scp /app/IBM/WebSphere/AppServer/profiles/dmgr01/config/cells/plugin-cfg.xml  root@ihs02:/ihs/IBM/WebSphere/Plugins/config/webserver1/

猜你喜欢

转载自www.linuxidc.com/Linux/2017-01/139807.htm