vim /opt/elogstash/logstash-6.5.1/startup.sh

nohup bin/logstash -f config/kafka.conf &

./startup.sh 即可后台启动

tail -f nohup.out 可查看启动日志