静默安装IBM IM (InstallationManager)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/cyan_grey/article/details/81031878

解压IIM安装包后:

如果使用root安装:
图形:install
静默:installc
非root用户安装:
图形:userinst.
静默:userinstc

采用命令行方式安装,可以指定很多参数。

packageId Indicates thepackage ID or feature ID that is defined in theinstall.xml file. This ID isrequired because it specifies the offeringto be installed.

repositories Indicates the source repository for the installation.

installationDirectory Indicates the installationdirectory for Installation Manager, which

mustinclude a path that contains spaces in quotation marks.

accessRights Defines the user you are using to install. If this isnot defined, admin

isused by default.

acceptLicense Indicates that you accept the license agreement.

查看帮助示例:
[root@was IIM]# ./installc -help
help, -help, -h, -? (all, )
[root@was IIM]# ./installc -help install

首次静默安装报错如下

/installc -acceptLicense -installationDirectory /opt/IBM/InstallationManager/eclipse -nl zh
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.NDTRIAL.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.IBMJAVA.v70 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.liberty.IBMJAVA.v70 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.IHSILAN.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.APPCLIENTILAN.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.NDDMZTRIAL.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.PLGILAN.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.WCTILAN.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.W2MTKILAN.v11 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.EDGELBIPV4IPV6TRIAL.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.PLUGCLIENTILAN.v85 软件包。
错误:找不到 /root/IM/install.xml 文件内指定的 com.ibm.websphere.liberty.NDTRIAL.v85 软件包。
CRIMA1002W 警告:以下存储库未连接:
-http://www.ibm.com/software/repositorymanager/V85WASNDTrial

说明:未能连接到一个或多个存储库。存储库由于若干原因可能不可用。

用户操作:检查以下各项:
验证存储库位置是否正确。
对于需要凭证的存储库,请验证凭证是否正确。可以在“存储库”首选项中设置凭证。
验证网络连接是否可用。
对于使用代理的环境,请验证代理设置是否正确。可以在 HTTP/FTP 首选项中设置代理设置。
更新产品要求基本产品可用。请验证基本产品在存储库中是否可用。使用 listAvailablePackages 命令查看存储库中可用的软件包。
如果您使用的是 IBM Passport Advantage 站点,请验证与该站点的连接是否正确。验证 Passport Advantage 首选项中的 Passport Advantage 连接。
对于使用防火墙的环境,请验证对存储库位置的访问是否可用。

猜测是文件install.xml的问题,删除其中报错的和,最终xml文件如下:

<?xml version="1.0" encoding="UTF-8"?>
<agent-input clean='true' temporary='true'>
<server>
  <repository location='.'/>
</server>
<install>
  <offering features='agent_core,agent_jre' id='com.ibm.cic.agent' version='1.8.1000.20141126_2002'/>
</install>
</agent-input>

再次执行安装命令则成功

[root@node2 IM]# ./installc -silent -acceptLicense -nl zh -installationDirectory /opt/IBM/InstallationManager/eclipse
已将 com.ibm.cic.agent_1.8.1000.20141126_2002 安装到 /opt/IBM/InstallationManager/eclipse 目录。

查看安装目录,确认已安装

[root@node2 IM]# ls /opt/IBM/InstallationManager/
eclipse/    license/    properties/ 

总结:先修改install.xml文件,然后执行./installc -silent -acceptLicense -nl zh -installationDirectory /opt/IBM/InstallationManager/eclipse

猜你喜欢

转载自blog.csdn.net/cyan_grey/article/details/81031878
IM