UiPath Documentation
automation-suite
2023.4
false
Linux 版 Automation Suite 安装指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

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

步骤 5.1:生成 cluster_config.json 文件​

生成最新的cluster_config.json文件,如下所示:

  • Option A: If you have the old cluster_config.json, generate the configuration file from the cluster by running the following command on the server node:

    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -i /path/to/old/cluster_config.json -o ./cluster_config.json
    
  • Option B: If you do not have the old cluster_config.json file, generate an override of any default values resulted during the installation of the previous version by running the following command on the server node:

    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -o ./cluster_config.json
    cd /opt/UiPathAutomationSuite/{version}/installer
    
    ./configureUiPathAS.sh config get -o ./cluster_config.json
    
备注:

For details on how to configure the cluster_config.json parameters, see Advanced installation experience.

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

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

  • 要将已还原的连接字符串提供给 Orchestrator 服务,请在 sql_connection_str orchestrator 文 cluster_config.json 件中的 下添加或更新 :

    "orchestrator": {
      "sql_connection_str": "<dotnet connection string>",   (added line)
      "enabled": true
    }
    "orchestrator": {
      "sql_connection_str": "<dotnet connection string>",   (added line)
      "enabled": true
    }
    
  • If Test Automation tables are placed inside the standalone Orchestrator database, you can add the same connection string for Test Automation feature inside the cluster_config.json file:

    "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 --decode
    kubectl -n uipath get secret [service-name]-secrets -o jsonpath='{.data.sqlConnectionString}'
          | base64 --decode
    
备注:

Make sure you escape special characters in the connection string's password.

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

在线​

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

cd /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 -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-agreement
cd /opt/UiPathAutomationSuite/{version}/installer

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

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新