automation-suite
2023.4
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

Linux 版 Automation Suite 安装指南

上次更新日期 2025年12月4日

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

步骤 5.1:生成 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 服务,请在cluster_config.json文件的orchestrator下添加或更新sql_connection_str
    "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 }
  • 要验证服务是否已成功迁移,请运行以下命令,其中[service-name]是您要验证的服务:
    kubectl -n uipath get secret [service-name]-secrets -o jsonpath='{.data.sqlConnectionString}'
          | base64 --decodekubectl -n uipath get secret [service-name]-secrets -o jsonpath='{.data.sqlConnectionString}'
          | base64 --decode
注意: 确保对连接字符串密码中的特殊字符进行转义。

步骤 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
  • 步骤 5.1:生成 cluster_config.json 文件
  • 步骤 5.2:为已安装的产品提供新的连接字符串
  • 步骤 5.3:运行服务安装程序
  • 在线
  • 离线

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。