将 Talend Log Server 安装为 RedHat/CentOS 6 和 Ubuntu 系统上的服务 - 8.0

Talend Real-Time Big Data Platform 安装指南 Linux 版

Version
8.0
Language
中文(简体)
EnrichDitaval
Real-Time Big Data Platform for Linux
Product
Talend Real-Time Big Data Platform
Module
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend ESB
Talend Identity and Access Management
Talend Installer
Talend JobServer
Talend Log Server
Talend Runtime
Talend SAP RFC Server
Talend Studio
Content
数据治理

步骤

  1. /etc/init.d/tlogserver 目录中创建一个可从中运行 Talend Log Server 的脚本,例如:
    #!/bin/sh
    #
    # tlogserver: this script starts and stops the monolithic jar
    #
    # chkconfig: - 85 15
    # description: logstash is an open source log management system.
    # processname: tlogstash
    # config: %%%LOGSERV_CONFIG%%%
    # binary: %%%LOGSERV_JAR%%%
    prog=tlogserver
    PATH=%%%INSTALLDIR%%%/logserv:/sbin:/bin:/usr/sbin:/usr/bin
    NAME=tlogserver
     
    test -x $DAEMON || exit 0
     
    set -e
     
    start() {
            echo -n $"Starting $prog: "
            %%%INSTALLDIR%%%/logserv/start_logserver.sh
    }
     
    stop() {
            echo -n $"Stopping $prog: "
            %%%INSTALLDIR%%%/logserv/stop_logserver.sh
    }
     
     
    case "$1" in
      start)
            start
            ;;
      stop)
            stop
            ;;
      restart)
            stop
            start
            ;;
          *)
                N=/etc/init.d/$NAME
                echo "Usage: $N {start|stop|restart}" >&2
                exit 1
                ;;
        esac
     
        exit 0
    
    
  2. 确保上面的文件是可执行的。为此,您可以在 /etc/init.d/tlogserver 目录中执行以下命令:
    # chmod +x /etc/init.d/tlogserver
  3. 执行以下命令以激活启动脚本:
    # update-rc.d tlogserver defaults 60

结果

仅当您在安装提供了使用 LogServer 选项的 Talend 模块(比如 Talend Administration CenterTalend Data Stewardship)时选择了此选项,Filebeat 才会自动安装并作为服务启动运行。下图为此选项的举例: