日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux命令行was集群启停,was集群架构设计

發布時間:2023/12/20 linux 23 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux命令行was集群启停,was集群架构设计 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、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--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

三、安裝WAS1、設置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 -xvfCZXR9ML.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.shroot@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/

總結

以上是生活随笔為你收集整理的linux命令行was集群启停,was集群架构设计的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。