阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

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

188次阅读
没有评论

共计 3442 个字符,预计需要花费 9 分钟才能阅读完成。

一、was 集群架构设计

本文实验环境:使用了 4 个虚拟机,其中 1 个虚机 36.0.8.120 为管理节点 dmgr01,两个受管节点 was01 与 was02,一个 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、停止 iptables、selinux 服务
# service iptables stop               
# service ip6tables stop             
# chkconfig iptables off             
# chkconfig ip6tables off 
# 修改 selinux 为 disabled
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 克隆虚拟机 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/

本文永久更新链接地址:http://www.linuxidc.com/Linux/2017-01/139807.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-21发表,共计3442字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中