安裝包准備
- 下載壓縮包.可以從IBM官網下載或者百度網盤, 鏈接: https://pan.baidu.com/s/1NSP_FMyECsagu2qCdi9x-g 提取碼: h907
- 將壓縮包上傳到linux服務器.
- 使用powershell + scp方式
### 提速參數 本地was包 linux用戶 linux IP 上傳位置
scp -r -c aes192-cbc .\WAS9.0.zip youruser@192.168.1.172:/home/youruser
- 使用SecureCRT上傳
- ssh登錄到遠程服務器.
ssh youruser@192.168.1.172
- 解壓
需要解壓如下目錄中的壓縮文件
#安裝程序
/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
按圖片順序執行
- 創建概要文件
### 分配執行權限
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