跳到主要内容 跳到补充内容

在基于 systemd 的 Linux 系统下安装服务Talend CommandLine

开始之前

以下所有命令都需要使用超级用户权限来执行。

步骤

  1. 使用以下命令创建服务文件:
    touch /etc/systemd/system/Talend-CommandLine.service
  2. 向您创建的文件分配相关权限:
    chmod 664 /etc/systemd/system/Talend-CommandLine.service
  3. 在该文件中粘贴以下内容并根据您的配置进行调整:
    [Unit]
    Description=Talend CommandLine Service
    After=network.target
    [Service]
    WorkingDirectory=<CommandLinePath>
    ExecStart=/bin/bash commandline-linux_x86_64.sh start
    Type=simple
    [Install]
    WantedBy=default.target
  4. 重新加载服务守护程序:
    systemctl daemon-reload
  5. 启动该服务:
    systemctl start Talend-CommandLine.service

本页面有帮助吗?

如果您发现此页面或其内容有任何问题 – 打字错误、遗漏步骤或技术错误 – 请告诉我们如何改进!