Web 服务器配置

可以部署 Release Control 以使用 Web 服务器。可以在 Release Control 所在的计算机上安装以下某个 Web 服务器:

  • Microsoft Internet 信息服务 (IIS) 5.x 或 6.x
  • Apache HTTP 服务器 2.2x

    Apache 安装位于“<Release Control 安装目录>\utilities\webServerConfigurer\apache”目录中。

如果已经在服务器上安装并激活 Microsoft IIS Web 服务器,则无法使用 Apache 服务器配置 Release Control,因为这两个 Web 服务器的默认端口都是 80。必须首先停止 Microsoft IIS Web 服务器。在安装之后,可以将 Apache Web 服务器配置为使用不同端口(比如 90),然后重新启动 IIS。

您可能需要在以下情况下配置 Web 服务器:

  • 您要使用第三方标识管理解决方案,如 CA SiteMinder。
  • 您要部署无法使用 AJP 协议在群集部署中与 Tomcat 通信的软件负载平衡器。

要配置 Web 服务器,请使用 WebServerConfigurer 实用程序。

在安装 Web 服务器之后,确保在“模块”>“管理员”>“配置”选项卡 >“服务器”窗格中的“服务器地址”框内指定 Web 服务器的端口。如果未正确配置此服务器地址,则电子邮件和报告可能无法正确工作。有关详细信息,请参阅服务器窗格

使用 Web 服务器配置实用程序:

请运行以下命令:

<Release Control 安装目录>\bin\WebServerConfigurer.bat <选项>

下面是命令行 <选项>:

选项 说明
config apache <端口> <Apache 主目录>

配置 Apache Web 服务器。指定 Apache 配置选项:

  • <端口>。Apache Web 服务器使用的端口。
  • <Apache 主目录>。Apache Web 服务器安装目录。
config IIS, <端口> <版本> <RC 网站>

指定 IIS 服务器的配置选项:

  • <端口>。此服务器使用的端口。默认端口为 80。
  • <版本>。Web 服务器版本,5 或 6。
  • <RC 网站>。为 Release Control 定义的网站。在新的 IIS 安装中,Release Control 默认站点名为 Default Web Site
--encrypted-password-file <文件> 使用在 <文件> 中指定的加密密码。
remove-config

将 Release Control 配置为不与 Web 服务器一起使用。此命令不会卸载 Web 服务器。

在“<Release Control 安装目录>\conf\server.settings”文件中,server-address 属性中的 Release Control 端口号会重置为 Tomcat 默认端口 (8080)。确保 Release Control 和 Tomcat 端口号相同。

例如:

  • 若要安装 Apache 服务器,请运行以下命令:
    <Release Control 安装目录>\bin\WebServerConfigurer.bat install apache "C:\Apache Software Foundation\Apache 2.2"
  • 若要为默认网站配置 IIS 服务器版本 6,请运行以下命令:
    <Release Control 安装目录>\bin\WebServerConfigurer.bat config IIS 6 "Default Web Site"
    • 在使用 webServerConfigurer 实用程序配置 IIS Web 服务器之后,负责从 IIS 重定向到 Release Control Tomcat 服务器的 ISAPI 筛选器的状态可能是“未知”。在第一个用户登录到 Release Control 之后,ISAPI 筛选器的状态应该更新为“就绪”。
    • 无法配置其中已运行现有 ISAPI 筛选器的 IIS Web 服务器。要进行此操作,必须首先删除以前安装的 mod_jk ISAPI 筛选器,然后使用 webServerConfigurer 实用程序为 Release Control 配置 IIS。
  • 若要删除 Web 服务器配置,请运行以下命令:
    <Release Control 安装目录>\bin\WebServerConfigurer.bat remove-config