当任务中使用nohup来执行时。在linux本地执行成功,但使用java远程连接调用失败
是因为nohup: redirecting stderr to stdou的问题
可以在末尾加2>&1解决
如:nohup flume-ng agent --conf conf.empty/ --name a1 --conf-file conf.empty/job/flume-telnet.conf -Dflume.root.logger==INFO,console >conf.empty/logs/a21.log 2>&1 &