1.启动agent
nohup ./bin/flume-ng agent --conf ./conf/agent -conf-file ./conf/agent/flume.conf -n agent >/dev/null 2>&1 &
会生成一个pid:123
2.优雅的停掉agent
ps -ef|grep java|grep agent|awk '{print 123;}'|xargs kill
1.启动agent
nohup ./bin/flume-ng agent --conf ./conf/agent -conf-file ./conf/agent/flume.conf -n agent >/dev/null 2>&1 &
会生成一个pid:123
2.优雅的停掉agent
ps -ef|grep java|grep agent|awk '{print 123;}'|xargs kill