本文共 4233 字,大约阅读时间需要 14 分钟。
一、静默安装was
用root用户
cd /opt/was/C1G35ML/WAS
[root@yto WAS]$cat responsefile.nd.txt |grep -v '^#'|grep -v '^$'
-OPT silentInstallLicenseAcceptance="false"
-OPT installType="installNew"
-OPT profileType="cell"
-OPT feature="languagepack.console.all"
-OPT feature="languagepack.server.all"
-OPT PROF_enableAdminSecurity="true"
-OPT PROF_adminUserName=
-OPT PROF_adminPassword=
vi responsefile.nd.txt(改之前备份)
-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall="true"
-OPT disableOSPrereqChecking="true"
-OPT installType="installNew"
-OPT profileType="none"
-OPT feature="noFeature"
-OPT PROF_enableAdminSecurity="false"
-OPT installLocation="/opt/IBM/WebSphere/AppServer"
保存
安装:
./install -options "responsefile.nd.txt" -silent
/opt/IBM/WebSphere/AppServer文件夹存在说明安装完成
二、静默安装ihs和plugin
cd /opt/was/C1G36ML/IHS
[root@yto IHS]#cat responsefile.txt |grep -v '^#'|grep -v '^$'
-OPT silentInstallLicenseAcceptance="false"
-OPT allowNonRootSilentInstall=false
-OPT installLocation="/usr/IBM/HTTPServer"
-OPT httpPort="80"
-OPT adminPort="8008"
-OPT createAdminAuth="false"
-OPT adminAuthUser="username"
-OPT adminAuthPassword="password"
-OPT adminAuthPasswordConfirm="password"
-OPT runSetupAdmin="false"
-OPT createAdminUserGroup=true
-OPT setupAdminUser="useridname"
-OPT setupAdminGroup="groupname"
-OPT installHttpService="true"
-OPT installAdminService="true"
-OPT winServiceLogOnAs="localSystem"
-OPT winServiceUser="YOUR_USER_NAME"
-OPT winServicePassword="YOUR_PASSWORD"
-OPT winServiceStartType="automatic"
-OPT installPlugin="true"
-OPT webserverDefinition="webserver1"
-OPT washostname="localhost"
viresponsefile.txt(改之前备份)
-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall=true
-OPT disableOSPrereqChecking="true"
-OPT installLocation="/opt/IBM/HTTPServer"
-OPT httpPort="8080"
-OPT adminPort="8008"
-OPT createAdminAuth="true"
-OPT adminAuthUser="wasadmin"
-OPT adminAuthPassword="password"
-OPT adminAuthPasswordConfirm="password"
-OPT runSetupAdmin="true"
-OPT createAdminUserGroup="false"
-OPT setupAdminUser="admin"
-OPT setupAdminGroup="admin"
-OPT installHttpService="true"
-OPT installAdminService="true"
-OPT installPlugin="true"
-OPT webserverDefinition="webserver1"
-OPT washostname="yto.was.test"
保存
安装:
./install -options "responsefile.txt" -silent
/opt/IBM/HTTPServer 文件夹存在说明安装完成
三、更新
cd /opt/was
tar xzvf 7.0.0.13-WS-UPDI-LinuxAMD64.tar.gz
cd UpdateInstaller
[root@yto UpdateInstaller]#cat responsefile.updiinstaller.txt |grep -v '^#'|grep -v '^$'
-OPT silentInstallLicenseAcceptance="false"
-OPT installLocation="C:\Program Files\IBM\WebSphere\UpdateInstaller"
viresponsefile.updiinstaller.txt(改之前备份)
-OPT silentInstallLicenseAcceptance="true"
-OPT allowNonRootSilentInstall="true"
-OPT disableOSPrereqChecking="true"
-OPT installLocation="/opt/IBM/WebSphere/UpdateInstaller"
-OPT skipStartMenu=true
安装:
./install -options "responsefile.updiinstaller.txt" -silent
/opt/IBM/WebSphere/UpdateInstaller文件夹存在说明安装完成
/opt/IBM/WebSphere/UpdateInstaller/responsefiles/install.txt
cd /opt/IBM/WebSphere/UpdateInstaller/responsefiles
[root@yto responsefiles]# cat install.txt |grep -v '^#'|grep -v '^$'
-W product.location=""
-W update.type="install"
更新was:
vi install.txt
-OPT checkFilePermissions="false"
-W maintenance.package="/opt/was/7.0.0-WS-WAS-LinuxX64-FP0000013.pak"
-W product.location="/opt/IBM/WebSphere/AppServer"
-W update.type="install"
/opt/IBM/WebSphere/UpdateInstaller/update.sh -options install.txt -silent
/opt/IBM/WebSphere/AppServer/bin/versionInfo.sh
-W maintenance.package="7.0.0-WS-WASSDK-LinuxX64-FP0000013.pak"
更新ihs:
vi install.txt
-OPT checkFilePermissions="false"
-W maintenance.package="/opt/was/7.0.0-WS-IHS-LinuxX64-FP0000013.pak"
-W product.location="/opt/IBM/HTTPServer"
-W update.type="install"
/opt/IBM/WebSphere/UpdateInstaller/update.sh -options install.txt -silent
/opt/IBM/HTTPServer/bin/versionInfo.sh
更新plugin:
vi install.txt
-OPT checkFilePermissions="false"
-W maintenance.package="/opt/was/7.0.0-WS-PLG-LinuxX64-FP0000013.pak"
-W product.location="/opt/IBM/HTTPServer/Plugins"
-W update.type="install"
/opt/IBM/WebSphere/UpdateInstaller/update.sh -options responsefiles/install.txt -silent
/opt/IBM/HTTPServer/Plugins/bin/versionInfo.sh
转载地址:http://lhhiv.baihongyu.com/