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    youruser@192.168.1.172:/home/youruser
  • 使用SecureCRT上传

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

  1. ssh登录到远程服务器.
ssh youruser@192.168.1.172
  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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM