1. 程式人生 > 實用技巧 >CentOS7.5 中 WAS9.0 安裝

CentOS7.5 中 WAS9.0 安裝

安裝包準備

  1. 下載壓縮包.可以從IBM官網下載或者百度網盤, 連結: https://pan.baidu.com/s/1NSP_FMyECsagu2qCdi9x-g 提取碼: h907
  2. 將壓縮包上傳到linux伺服器.
  • 使用powershell + scp方式
###    提速引數          本地was包      linux使用者  linux IP      上傳位置
 scp -r -c aes192-cbc  .\WAS9.0.zip    [email protected]:/home/youruser
  • 使用SecureCRT上傳

參看 https://www.cnblogs.com/rabbitvincent/p/13559532.html

  1. ssh登入到遠端伺服器.
ssh [email protected]
  1. 解壓

需要解壓如下目錄中的壓縮檔案

#安裝程式
/home/youruser/my_was_install/WAS9.0.0.10/IM/agent.installer.linux.gtk.x86_64_1.8.9003.20190204_1751.zip
#repository.config 依賴需要
/home/youruser/my_was_install/WAS9.0.0.10/9.0.0-WS-WAS-FP010.zip
/home/youruser/my_was_install/WAS9.0.0.10/WAS_ND_V9.0_MP_ML.zip
/home/youruser/my_was_install/WAS9.0.0.10/IHS/was.repo.9000.ihs.zip
/home/youruser/my_was_install/WAS9.0.0.10/IHS/was.repo.9000.plugins.zip
/home/youruser/my_was_install/WAS9.0.0.10/sdk/ibm-java-sdk-8.0-5.30-linux-x64-installmgr.zip

操作.

#進入安裝解壓目錄
cd my_was_install/
#解壓was9.0
unzip WAS9.0.zip
#
unzip 9.0.0-WS-WAS-FP010.zip -d 9.0.0-WS-WAS-FP010
#
unzip WAS_ND_V9.0_MP_ML.zip -d WAS_ND_V9.0_MP_ML
#
cd IM/
#
unzip agent.installer.linux.gtk.x86_64_1.8.9003.20190204_1751.zip -d agent.installer.linux.gtk.x86_64_1.8.9003.20190204_1751
#
cd ../IHS/
unzip was.repo.9000.ihs.zip -d was.repo.9000.ihs
unzip was.repo.9000.plugins.zip -d was.repo.9000.plugins
cd ../sdk/
unzip ibm-java-sdk-8.0-5.30-linux-x64-installmgr.zip -d ibm-java-sdk-8.0-5.30-linux-x64-installmgr

解壓完成後目錄檔案tree

#列印2層結構
tree -L 2 

結果展示

.
├── 9.0.0-WS-WAS-FP010
│   ├── atoc
│   ├── files
│   ├── native
│   ├── Offerings
│   ├── plugins
│   ├── repository.config
│   ├── repository.xml
│   ├── update_com.ibm.websphere.BASE.v90_9.0.10.20181119_1807_from_9.0.0.20160526_1854.xml
│   ├── update_com.ibm.websphere.ILAN.v90_9.0.10.20181119_1807_from_9.0.0.20160526_1854.xml
│   ├── update_com.ibm.websphere.NDDMZ.v90_9.0.10.20181119_1807_from_9.0.0.20160526_1854.xml
│   └── update_com.ibm.websphere.ND.v90_9.0.10.20181119_1807_from_9.0.0.20160526_1854.xml
├── 9.0.0-WS-WAS-FP010.zip
├── IHS
│   ├── was.repo.9000.ihs
│   ├── was.repo.9000.ihs.zip
│   ├── was.repo.9000.plugins
│   └── was.repo.9000.plugins.zip
├── IM
│   ├── agent.installer.aix.gtk.ppc_1.8.9003.20190204_1751.zip
│   ├── agent.installer.linux.gtk.x86_1.8.9003.20190204_1751.zip
│   ├── agent.installer.linux.gtk.x86_64_1.8.9003.20190204_1751
│   ├── agent.installer.linux.gtk.x86_64_1.8.9003.20190204_1751.zip
│   ├── agent.installer.win32.win32.x86_1.8.9003.20190204_1751.zip
│   └── agent.installer.win32.win32.x86_64_1.8.9003.20190204_1751.zip
├── sdk
│   ├── ibm-java-sdk-8.0-5.30-aix-ppc64-installmgr.zip
│   ├── ibm-java-sdk-8.0-5.30-linux-ppc64-installmgr.zip
│   ├── ibm-java-sdk-8.0-5.30-linux-x64-installmgr
│   ├── ibm-java-sdk-8.0-5.30-linux-x64-installmgr.zip
│   └── ibm-java-sdk-8.0-5.30-win-x64-installmgr.zip
├── WAS_ND_V9.0_MP_ML
│   ├── atoc
│   ├── Copyright.txt
│   ├── files
│   ├── lafiles
│   ├── native
│   ├── Offerings
│   ├── plugins
│   ├── readme
│   ├── repository.config
│   └── repository.xml
└── WAS_ND_V9.0_MP_ML.zip

5.安裝WAS

執行安裝. 如果沒有安裝圖形庫.請安裝圖形庫

sudo /home/youruser/my_was_install/WAS9.0.0.10/IM/agent.installer.linux.gtk.x86_64_1.8.9003.20190204_1751/install

按圖片順序執行

















  1. 建立概要檔案
### 分配執行許可權
chmod -R 755 /opt/IBM/*
### 切換目錄
cd /opt/IBM/WebSphere/AppServer/bin/
### 建立Dmgr概要檔案
sudo ./manageprofiles.sh -create -templatePath ../profileTemplates/dmgr -profileName Dmgr01 -profilePath ../profiles/Dmgr01

### 建立App01概要檔案
sudo ./manageprofiles.sh -create -templatePath ../profileTemplates/default -profileName App01 -profilePath ../profiles/App01

如果需要刪除概要檔案時執行

# 列印profiles
./manageprofiles.sh -listProfiles  
cd /opt/IBM/WebSphere/AppServer/bin/
/manageprofiles.sh -delete -profileName Dmgr01
### 提示成功後再到 profiles 資料夾下手工將剩下的概要檔案目錄刪除即可

相關配置

vim /etc/security/limits.d/was.conf
#內容為下面4行.儲存重啟.
*       soft    nofile  65535
*       hard    nofile  65535
*       soft    core    65535
*       hard    core    65535

# ~/.bash_profile 中文設定
export LANG=zh_CN.UTF-8

# 啟動過程
ulimit -c 10240
ulimit -n 65535
ulimit -u 10240
export LANG=zh_CN.gb2312
/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/startManager.sh
/IBM/WebSphere/AppServer/profiles/App01/bin/startNode.sh
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh master
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem01 &
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem02 &
/IBM/HTTPServer/bin/apachectl -k start
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem03 &
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem04 &
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem05 &
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem06 &
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem07 &
/IBM/WebSphere/AppServer/profiles/App01/bin/startServer.sh ncMem08 &

# 關閉過程
ulimit -n 65535
ulimit -u 10240
ulimit -c 10240
/IBM/HTTPServer/bin/apachectl -k stop
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem01
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem02
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem03
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem04
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem05
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem06
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem07
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh ncMem08
/IBM/WebSphere/AppServer/profiles/App01/bin/stopServer.sh master
/IBM/WebSphere/AppServer/profiles/App01/bin/stopNode.sh
/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/stopManager.sh