可以从命令行通过单一命令同时生成 Content Engine
所需的所有配置 XML 文件。
运行 generateconfig 命令时,将创建所有必需的配置 XML 文件。
要同时生成所有配置 XML 文件,请完成下列步骤:
- 以 config_mgr_user(即,运行 Configuration Manager 的用户)身份登录到 Content Engine 服务器。
- 将当前目录切换到 ce_install_path/tools/configure,其中 ce_install_path 是 Content Engine 软件的安装位置。
- 运行以下命令。在输入命令时,请勿换行。
- WebSphere® Application Server
configmgr_cl generateconfig -appserver app_server_type
-repositorytype ldap_repository_type
-db db_type -ldap ldap_type
-bootstrap bootstrap_operation
-deploy deploy_type -profile myprofile
- Oracle WebLogic Server 或 JBoss Application Server
configmgr_cl generateconfig -appserver app_server_type
-db db_type -ldap ldap_type
-bootstrap bootstrap_operation
-deploy deploy_type -profile myprofile
其中:
- -appserver appserver_name
- -appserver appserver_type 参数指定应用程序服务器的类型,并且必须是
WebSphere、WebLogic 或 JBoss。
- -repositorytype ldap_repository_type
- (仅限于 WebSphere Application Server)-repositorytype ldap_repository_type 参数指定要使用的 LDAP 存储库的类型,并且必须是 standalone 或 federated。
- -db database_type
- 只有在同时生成所有文件或者使用 configurejdbcgcd 或 configurejdbcos
选项来生成单一文件时,-db database_type 参数才是必需的。此参数指定 Content Engine 要使用的数据库的类型,并且必须是 mssql、oracle、oracle_rac、db2 或 db2zos。
- -ldap ldap_type
- 只有在同时生成所有文件或者使用 configureldap
选项来生成单一文件时,-ldap ldap_type 参数才是必需的。此参数指定 Content Engine 用于认证用户的目录服务存储库的类型,并且必须是 activedirectory、adam、edirectory、oid、sunjava 或 tivoli。adam 值既适用于 Microsoft® ADAM 也适用于 AD LDS。
- -bootstrap bootstrap_operation
- 只有在同时生成所有文件或者使用 configurebootstrap
选项来生成单一文件时,-bootstrap bootstrap_operation 参数才是必需的。此参数指定概要文件的引导操作,并且必须是
new、modify 或 upgrade。
- -deploy deploy_type
- 只有在同时生成所有文件或者使用 deployapplication
选项来生成单一文件时,-deploy deploy_type 参数才是必需的。此参数指定 Content Engine 部署类型。值必须是 standard 或 netdeploy(网络部署)。
如果您正在将 Content Engine 部署到独立 WebSphere Application Server、Oracle WebLogic Server 或 JBoss Application Server(即,既不是受管服务器,也不是集群服务器),请指定 standard。
如果您正在将 Content Engine 部署到受管 WebSphere Application Server
实例,请指定 netdeploy。即,您正在使用 Network Deployment 来管理各个不一定包含在集群中的服务器。
- -profile myprofile
- -profile myprofile 参数指定要使用的概要文件。myprofile 值可以是下列其中一项:
- 概要文件的名称,例如 ce_was_tiv_db2。此概要文件必须位于 ce_install_path/tools/configure/profiles 目录中,其中 ce_install_path 是 Content Engine 软件的安装位置。
- 概要文件目录的绝对路径,例如 "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2" 或 opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2。
- 概要文件输入文件的标准路径,例如 "C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfg" 或 opt/IBM/FileNet/ContentEngine/tools/configure/profiles/ce_was_tiv_db2/ce_was_tiv_db2.cfg。
切记: 如果此路径包含带有空格的目录名,请将整个路径括在引号中。例如,输入
"C:\Program Files\IBM\FileNet\ContentEngine\tools\configure\profiles\ce_was_tiv_db2\ce_was_tiv_db2.cfg"。
例如,以下命令生成新安装概要文件的所有配置 XML 文件,以便在带有 IBM® Tivoli® Directory Server
的 WebSphere 上执行标准部署。此部署使用
ce_install_path/tools/configure/profiles/wstdb2
目录中的独立 LDAP 存储库和 DB2):
configmgr_cl generateconfig -appserver WebSphere
-repositorytype standalone -db db2 -ldap tivoli
-bootstrap new -deploy standard -profile wstdb2