websphere静默安装

1:适应范围
适应在SUSE LINUX 10及以上、AIX6.1、WINDOWS上安装。
适应websphere6.1、websphere7版本
2:静默安装
解压websphere安装包,然后赋予可执行权限。
步骤 1 编辑WAS/responsefile.nd.txt,修改如下配置项。
-OPT silentInstallLicenseAcceptance="false"改为
-OPT silentInstallLicenseAcceptance="true"
-OPT profileType="cell"改为
-OPT profileType="none"
-OPT PROF_enableAdminSecurity="true"改为
-OPT PROF_enableAdminSecurity="false"
注释:
-OPT PROF_adminUserName=
-OPT PROF_adminPassword=
取消注释:
-OPT installLocation="/opt/IBM/WebSphere/AppServer"
步骤 2 执行命令开始静默安装websphere。
./install -options /home/was7/WAS/responsefile.nd.txt -silent
步骤 3 查询安装日志。
安装日志路径为:/opt/IBM/WebSphere/AppServer/logs/install/log.txt
查看此日志,有类似
iguration command: 97SInstallInvokeWSProfile, percent complete: 100%;
Process, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
Process, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS
表明安装成功。
 
2.2 静默安装websphere升级引擎
静默升级由两个步骤完成,先安装升级引擎工具,再安装升级补丁包。
操作步骤
解压升级引擎以后,在UpdateInstaller目录下有responsefile.updiinstaller.txt。
需要给JDK、UpdateInstaller赋予可执行权限。
步骤 1 修改responsefile.updiinstaller.txt文件。
-OPT silentInstallLicenseAcceptance="false"改为
-OPT silentInstallLicenseAcceptance="true"
取消注释: -OPT installLocation="/opt/IBM/WebSphere/UpdateInstaller"
注释windows的默认路径:
# -OPT installLocation="C:\Program Files\IBM\WebSphere\UpdateInstaller"
步骤 2 执行命令静默安装。
./install -options /home/was7/update/UpdateInstaller/responsefile.updiinstaller.txt -silent
 
Windows下使用对应的bat命令替换shell命令,后续安装命令不再做说明。
步骤 3 查询安装日志。
/opt/IBM/WebSphere/AppServer/UpdateInstaller/log.txt记录了安装过程,出现类似:percent complete: 100%
Install, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
Install, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS
表示安装成功
 
2.3 静默安装websphere补丁包
补丁包有wassdk与was组成,成对安装。
若要依次升级补丁包,需要重复执行此过程。
 
升级前建议先备份安装好的websphere。
操作步骤
步骤 1 将pak包拷贝到/opt/IBM/WebSphere/UpdateInstaller/maintenance下。
步骤 2 编辑install.txt。
此文件存在于/opt/IBM/WebSphere/UpdateInstaller/responsefiles下
去掉注释,并添加maintenance的路径:
-W maintenance.package="/opt/IBM/WebSphere/UpdateInstaller/maintenance/"
 
Websphere将寻找maintenance下的最新的补丁包。
保险起见,maintenance下应该只存在需要升级的pak包,无关pak包去掉。
添加websphere的安装路径:
-W product.location="/opt/IBM/WebSphere/AppServer"
步骤 3 执行命令静默安装。
./update.sh -options /opt/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt -silent
步骤 4 检查升级结果。
/opt/IBM/WebSphere/AppServer/logs/update/install/updatelog.txt记录了此次安装的过程。
提示如下信息表示升级成功:
99SSDKEmbeddedCleanup, percent complete: 100%
Install, com.ibm.ws.install.ni.ismp.actions.SetExitCodeAction, msg1, CWUPI0000I: EXITCODE=0
Install, com.ibm.ws.install.ni.ismp.actions.ISMPLogSuccessMessageAction, msg1, INSTCONFSUCCESS
步骤 5 查看当前版本。
/opt/IBM/WebSphere/AppServer/bin下执行./versionInfo.sh查看当前版本号。
----结束
 

 
 
 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28588485/viewspace-756521/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28588485/viewspace-756521/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值