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

手动:安装自动化说明:通过配置环境变量并运行所需的安装步骤,手动安装 Automation Suite。套件

下表列出了必须执行 Automation Suite 安装的步骤:

步骤单节点安装多节点安装精简模式
先决条件
步骤 1:接受许可协议
步骤 2:在第一台服务器计算机上安装基础架构
步骤 3:在其他服务器计算机上安装基础架构
步骤 4:在所有代理计算机上安装基础架构
步骤 5:结合使用集群内注册表以进行离线安装
步骤 6:完成安装

先决条件

使用以下导出命令,将KUBECONFIG环境变量配置为指向 RKE2 Kubernetes 配置文件,并更新PATH环境变量以包含 RKE2 工具目录:

export KUBECONFIG=/etc/rancher/rke2/rke2.yaml 
export PATH=$PATH:/var/lib/rancher/rke2/bin
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml 
export PATH=$PATH:/var/lib/rancher/rke2/bin

步骤 1:接受许可协议

在运行安装之前,请务必阅读许可证协议

要接受许可证协议,请选择以下方法之一:

  • 选项 1(环境变量) - 通过运行以下命令将LICENSE_AGREEMENT环境变量设置为accept

    export LICENSE_AGREEMENT=accept
    export LICENSE_AGREEMENT=accept
    
  • 选项 2(内联参数) - 将--accept-license-agreement附加到每次执行uipathctl后。

步骤 2:在第一台服务器计算机上安装基础架构

要在第一台服务器计算机上安装基础架构,请导航到安装程序文件夹并运行以下命令:

cd /opt/UiPathAutomationSuite/<version>/installer

./bin/uipathctl rke2 install -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -k --accept-license-agreement
cd /opt/UiPathAutomationSuite/<version>/installer

./bin/uipathctl rke2 install -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -k --accept-license-agreement
备注:
  • -k 参数会在第一台服务器计算机上安装基础架构。
  • 安装基础架构后,服务器计算机将成为 Automation Suite 集群中的节点。

步骤 3:在其他服务器计算机上安装基础架构

要扩展 Automation Suite 集群,请在其他服务器计算机上安装基础架构。

为此,请在所有其他服务器计算机上运行以下命令:

cd /opt/UiPathAutomationSuite/<version>/installer
 
./bin/uipathctl rke2 install -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -k -j server --accept-license-agreement
cd /opt/UiPathAutomationSuite/<version>/installer
 
./bin/uipathctl rke2 install -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -k -j server --accept-license-agreement
备注:

-j server参数将计算机作为服务器节点添加到现有的 Automation Suite 集群。cluster_config.json文件中的fixed_rke_address标志已连接现有的 Automation Suite 集群。

步骤 4:在所有代理计算机上安装基础架构

如果您有其他代理计算机,则必须在这些计算机上安装基础架构,并将其作为代理节点添加到 Automation Suite 集群。

为此,请在所有代理计算机上运行以下命令:

cd /opt/UiPathAutomationSuite/<version>/installer

./bin/uipathctl rke2 install -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -k -j agent --accept-license-agreement
cd /opt/UiPathAutomationSuite/<version>/installer

./bin/uipathctl rke2 install -i /opt/UiPathAutomationSuite/cluster_config.json -o ./output.json -k -j agent --accept-license-agreement
备注:

-j服务器参数将计算机作为服务器节点添加到现有的 Automation Suite 集群。 cluster_config.json文件中的fixed_rke_address标志已与现有的 Automation Suite 集群相连。

步骤 5:结合使用集群内注册表以进行离线安装

仅当您使用集群内注册表进行离线安装时,才需要执行此步骤。

要从临时注册表为集群内注册表设定种子,请运行以下命令:

cd /opt/UiPathAutomationSuite/<version>/installer
./bin/uipathctl rke2 registry hydrate-registry /opt/UiPathAutomationSuite/cluster_config.json
cd /opt/UiPathAutomationSuite/<version>/installer
./bin/uipathctl rke2 registry hydrate-registry /opt/UiPathAutomationSuite/cluster_config.json

如果在运行上述命令时遇到内存问题,请将--serial选项与 validate-registry 命令一起使用,以防止出现内存不足问题:

./bin/uipathctl rke2 registry hydrate-registry /opt/UiPathAutomationSuite/cluster_config.json --serial
./bin/uipathctl rke2 registry hydrate-registry /opt/UiPathAutomationSuite/cluster_config.json --serial

如果您计划使用 Document Understanding 新式项目,请在安装 Document Understanding - 离线捆绑包后为dumodernexperience捆绑包种子。

如果您遇到注册表种子设定问题,请参阅“故障排除”

步骤 6:完成安装

此时,所有节点都应互连,以建立用于安装 Automation Suite 的基础架构。

要完成安装,请执行以下步骤:

  1. 通过运行以下命令,验证所有节点在第一个服务器节点上是否可用:

    kubectl get nodes
    kubectl get nodes
    

    上述命令的输出应与下图所示的输出类似。请注意,节点总数必须与服务器节点和代理节点的总数相等。

  2. 通过运行以下命令,创建安装共享组件所需的先决条件:

    ./bin/uipathctl prereq create /opt/UiPathAutomationSuite/cluster_config.json --versions versions/helm-charts.json
    ./bin/uipathctl prereq create /opt/UiPathAutomationSuite/cluster_config.json --versions versions/helm-charts.json
    

    这些主要是对象存储桶和 SQL 数据库。 如果在配置文件中设置了sql.create_db key ,则在 SQL Server 上创建安装所需的 SQL 数据库。 如果在配置文件中设置了object_storage.create_bucket键,则系统会在云提供程序中创建对象存储存储桶。

  3. 通过运行以下命令,验证共享组件安装所需的先决条件:

    ./bin/uipathctl prereq run /opt/UiPathAutomationSuite/cluster_config.json --versions versions/helm-charts.json
    ./bin/uipathctl prereq run /opt/UiPathAutomationSuite/cluster_config.json --versions versions/helm-charts.json
    
  4. 验证基础架构后,通过运行以下命令安装共享组件和服务:

    ./bin/uipathctl manifest apply /opt/UiPathAutomationSuite/cluster_config.json --versions ./versions/helm-charts.json
    ./bin/uipathctl manifest apply /opt/UiPathAutomationSuite/cluster_config.json --versions ./versions/helm-charts.json
    

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新