【使用响应文件静默安装软件包(生成相应文件,不安装)】
./IBMIM -record /response_files/install_product.xml -skipInstall skipInstall/IBM_product
./imcl input /response_files/install.xml -log /mylog/install_log.xml -acceptLicense
请注意看要点 skipInstall/IBM_product 不要写这个IM的正在用的agentDataLocation 如果写了 就会真正的安装 -skipInstall就无效了
使用响应文件安装
方式一:导入安装包仓库文件后,通过IM安装时不勾选安装JDK7
切换到IM的安装目录:
cd /opt/IBM/InstallationManager/eclipse
生成安装响应文件:
./IBMIM -record /opt/IBM/install_product.xml -skipInstall /opt/app
通过响应文件安装WebSphere软件:
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /opt/IBM/install_product.xml -log /opt/install-websphere_log.xml -acceptLicense
方式二:导入安装包仓库文件后,通过IM安装时勾选安装JDK7
切换到IM的安装目录:
cd /opt/IBM/InstallationManager/eclipse
生成安装响应文件:
./IBMIM -record /opt/IBM/install_product2.xml -skipInstall /opt/app2
通过响应文件安装WebSphere软件:
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /opt/IBM/install_product2.xml -log /opt/install-websphere_log2.xml -acceptLicense
检查是否当前WAS已安装的SDK
cd /opt/IBM/WebSphere/AppServer/bin
./managesdk.sh -listAvailable
CWSDK1003I: Available SDKs :
CWSDK1005I: SDK name: 1.8_64_bundled
CWSDK1005I: SDK name: 1.7_64
CWSDK1001I: Successfully performed the requested managesdk task.
managesdk常用命令说明:
列出当前可用SDK
managesdk.sh -listAvailable
查询新概要文件创建SDK
managesdk.sh -getNewProfileDefault
设置新概要文件创建SDK
managesdk.sh -setNewProfileDefault -sdkName 1.7_64
为所有概要文件设置SDK
managesdk.sh -enableProfileAll -sdkName 1.7_64
为指定概要文件设置SDK
managesdk.sh -enableProfile –sdkName 1.7_64 –profileName AppSrv01
确保将 AppServ01 概要文件配置为使用 Java 7,列出可用 Java JDK