分享

静默安装was

 化茧成蝶时光机 2019-08-21

一、静默安装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 文件夹存在说明安装完成

二、静默安装ihsplugin

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"

vi responsefile.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"

vi responsefile.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="<SPECIFY_PRODUCT_INSTALL_LOCATION_HERE>"

-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

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多