Sun Java System Instant Messaging 7.2 管理指南

Procedure安装后配置 Instant Messaging

  1. 转到 Instant Messaging 的安装目录。

    默认情况下,在 Solaris 上,此目录为 /opt/SUNWiim;在 Linux 上,此目录为 /opt/sun/im

  2. 以下列方式之一运行 configure 实用程序:

    图形用户界面:


    configure
    

    命令行:


    configure --nodisplay
    

    使用状态文件:


    configure --nodisplay --noconsole --state statefile
    

    其中 statefile 是要使用的状态文件的路径。如果使用状态文件进行配置,则不会提示您输入配置信息。而是使用状态文件中的值来配置软件。有关生成状态文件的信息,请参见执行无提示 Instant Messaging 配置

    如果使用图形用户界面或命令行进行配置,则会出现一系列提示,请求输入设置 Instant Messaging 初始配置所需的信息。出现的提示因所安装的组件而异。使用 Instant Messaging 核对表中的值填写请求的信息。请参见完成配置核对表

  3. 如果您在 Instant Messaging 服务器的不同主机上安装 Sun Java System Access Manager,运行 configure 实用程序后,您需要手动将 imServices 文件从 Instant Messaging 服务器主机复制到 Access Manager 主机。

    请按以下步骤执行:

    1. 在 Instant Messaging 服务器主机上查找 imService_*.properties 文件。

      默认情况下,在 Solaris 上,这些文件位于 /opt/SUNWiim/lib/ 下;在 Linux 上,这些文件位于 /opt/sun/im/lib/ 下。

    2. 将文件复制到 Access Manager 主机的 locale 目录下。

      默认情况下,在 Solaris 上,此目录为 /opt/SUNWam/locale,在 Linux 上,此目录为 /opt/sun/identity/locale

  4. 如果正在使用 Access Manager 管理 Instant Messaging 策略,则需运行 imadmin assign_services 命令。


    imadmin assign_services
    

    系统将提示您给出组织中存储用户条目的基 DN。该命令会将 Instant Messaging 和在线状态服务添加到您指定的组织下的现有用户。

  5. 重新启动 Sun Java System Application Server。

    如果 Instant Messaging 要将 Access Manager 策略用于 Sun Java System Application Server 部署,则需要在完成配置 Instant Messaging 后重新启动 Application Server。如果不重新启动 Application Server,Instant Messaging 服务就不会在 Access Manager 控制台 (amconsole ) 中显示。

  6. 如果打算使用 XMPP/HTTP 网关,在以下情况下,您可能需要在 httpbind_log4j.conf 中修改 XMPP/HTTP 网关默认日志文件的位置:

    • 在 Solaris 中,应该选择使用日志位置而非默认值

    • 在 Linux 中,可以选择任何路径

    请按以下步骤执行:

    1. 打开 httpbind_log4j.conf 文件。

      该文件存储于 httpbind.conf 文件中的指定位置,作为 httpbind.log4j.config 参数的值。默认情况下,该文件存储于默认 Instant Messaging 实例的以下目录中:


      im-cfg-base/httpbind_log4j.conf
    2. log4.appender.appender_ID.file 参数的值设为日志文件的存储位置。

      默认情况下,在 Linux 中,该值为 /var/opt/sun/im/default/log。如果在运行 configure 时为日志文件选择了另一个位置,则输入该路径,以作为参数值。

  7. 如有必要,为 SSO 和策略管理配置基于 Access Manager 的服务。

    有关信息,请参见在 Access Manager 中向子组织添加 Instant Messaging 和在线状态服务以支持单点登录和策略管理。

  8. 配置 Web 容器和客户机系统以支持 Instant Messaging。

    有关说明,请参见第 2 章,设置和启动 Instant Messenger