Automation Suite
2022.10
False
横幅背景图像
Automation Suite 安装指南
上次更新日期 2024年4月24日

步骤 5:更新已迁移的产品连接字符串

生成 cluster_config.json 文件

生成最新的cluster_config.json文件,如下所示:
  • 选项 A:如果您有旧的 cluster_config.json,请通过在服务器节点上运行以下命令从集群生成配置文件:
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json
  • 选项 B:如果您没有旧的 cluster_config.json 文件,请通过在服务器节点上运行以下命令,覆盖在安装先前版本期间产生的任何默认值:
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -o ./cluster_config.jsoncd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -o ./cluster_config.json
备注:
有关如何配置 cluster_config.json 参数的详细信息,请参阅 高级安装体验

步骤 5.2:为已安装的产品提供新的连接字符串

您必须提供已还原数据库的数据库连接字符串。

  • 要将已还原的连接字符串提供给 Orchestrator 服务,请在 sql_connection_str orchestratorcluster_config.json 件中的 下添加或更新 :
    "orchestrator": {
      "sql_connection_str": "<dotnet connection string>",   (added line)
      "enabled": true
    }"orchestrator": {
      "sql_connection_str": "<dotnet connection string>",   (added line)
      "enabled": true
    }
  • 如果测试自动化表放置在独立的 Orchestrator 数据库中,则可以在 cluster_config.json 文件中为测试自动化功能添加相同的连接字符串:
    "orchestrator": {
        "testautomation": {
          "enabled": true,
          "sql_connection_str": "<restored orchesrator connection string>"
        },
      "sql_connection_str": "<restored orchesrator connection string>",   (added line)
      "enabled": true
    }"orchestrator": {
        "testautomation": {
          "enabled": true,
          "sql_connection_str": "<restored orchesrator connection string>"
        },
      "sql_connection_str": "<restored orchesrator connection string>",   (added line)
      "enabled": true
    }
  • 要将还原的连接字符串提供给 Insights 服务,请在 cluster_config.json 文件的 insights 下添加或更新 sql_connection_str
    "insights": {   
       "sql_connection_str": "<restored connection string>",   (added line)
       "enabled": true }"insights": {   
       "sql_connection_str": "<restored connection string>",   (added line)
       "enabled": true }
注意: 确保对连接字符串密码中的特殊字符进行转义。

步骤 5.3:运行服务安装程序

在线

要在在线环境中运行服务安装程序,请在服务器节点上运行以下命令:

cd /opt/UiPathAutomationSuite/{version}/installer

./install-uipath.sh -i ./cluster_config.json -s -o output.json --accept-license-agreementcd /opt/UiPathAutomationSuite/{version}/installer

./install-uipath.sh -i ./cluster_config.json -s -o output.json --accept-license-agreement

离线

要在离线环境中运行服务安装程序,请在服务器节点上使用以下命令:

cd /opt/UiPathAutomationSuite/{version}/installer

./install-uipath.sh -i ./cluster_config.json -s --install-type offline -o output.json --accept-license-agreementcd /opt/UiPathAutomationSuite/{version}/installer

./install-uipath.sh -i ./cluster_config.json -s --install-type offline -o output.json --accept-license-agreement

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.