# 安装包装器

可用产品...

* Data Fabric
* Data Services Platform
* ESB
* MDM Platform
* Real-Time Big Data Platform

安装 Apache Karaf Service Wrapper 以生成 Talend Runtime 服务文件。

## 步骤

1. 浏览到 Talend Runtime 安装目录的 bin 文目录，然后通过以 root 用户身份执行 trun 文件来启动该容器。
2. 要安装包装器功能，请键入：

   karaf@trun&gt; feature:install wrapper

   一经安装，包装器功能就会在 trun 中提供 wrapper:install 新命令，此命令允许您将 Talend Runtime 安装为服务。
3. 要安装该服务，请键入以下命令：

   karaf@trun&gt; wrapper:install

   或者，要将该容器注册为自动启动模式的服务，只需键入：

   karaf@trun&gt; wrapper:install -s AUTO\_START -n TALEND-CONTAINER -d Talend-Container -D "Talend Container Service"

   其中 TALEND-CONTAINER 是服务名称，Talend-Container 是服务的显示名称，"Talend Container Service (Talend 容器服务)" 是服务的描述。

   下面是在 Linux 上执行的 wrapper:install 命令的示例：
   ```
   karaf@trun()> feature:install wrapper
   karaf@trun()> wrapper:install -s AUTO_START -n TALEND-CONTAINER \
   -d Talend-Container -D "Talend Container Service"
   Creating file: <TalendRuntimePath>/bin/TALEND-CONTAINER-wrapper
   Creating file: <TalendRuntimePath>/bin/TALEND-CONTAINER-service
   Creating file: <TalendRuntimePath>/bin/TALEND-CONTAINER.service
   Creating file: <TalendRuntimePath>/etc/TALEND-CONTAINER-wrapper.conf
   Creating file: <TalendRuntimePath>/lib/libwrapper.so
   Creating file: <TalendRuntimePath>/lib/karaf-wrapper.jar
   Creating file: <TalendRuntimePath>/lib/karaf-wrapper-main.jar
   Setup complete. You may want to tweak the JVM properties in the wrapper
   configuration file:
   <TalendRuntimePath>/etc/TALEND-CONTAINER-wrapper.conf
   before installing and starting the service.
   ```

## 结果

Talend Runtime 服务文件已生成。您可以安装 Talend Runtime 服务了。