anchor.diff:  ```
   bin/flume-ng agent --conf conf --conf-file conf/example.conf --name a1 -Dflume.root.logger=INFO,console
   ```
  -然后继续follow的 https://flume.apache.org/FlumeUserGuide.html 上面的指导就可以了。
  -
  -
  -== 第三方插件
  +
  +现在agent已经启动，再起一个terminal窗口，执行：
  +
  +```
  +nu@node:~$ telnet localhost 44444
  +Trying 127.0.0.1...
  +Connected to localhost.
  +Escape character is '^]'.
  +```
  +输入“Hello world!”，回车：
  +```
  +Hello world!
  +OK
  +```
  +
  +在agent执行窗口会看到：
  +```
  +2016-05-13 14:12:11,592 (SinkRunner-PollingRunner-DefaultSinkProcessor) [INFO - org.apache.flume.sink.LoggerSink.process(LoggerSink.java:94)] Event: { headers:{} body: 48 65 6C 6C 6F 20 77 6F 72 6C 64 21 0D          Hello world!. }
  +```
  +
  +=== *第三方插件
   
   插件目录可以加到flume-env.sh中的FLUME_CLASSPATH，或者直接把插件装到plugins.d目录下面。
   每个插件目录可以有三个子目录: lib, libext, native
  
positive.code: export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  ```
  
  
  然后，参考
  https://flume.apache.org/FlumeUserGuide.html
  进行更深入的了解。这里有一个例子：
  ```
  bin/flume-ng agent --conf conf --conf-file example.conf --name a1 -Dflume.root.logger=INFO,console
  ```
  如果你在flume conf目录下运行这个命令，他会提示错误：
  ```
  
negative.code: 添加到~/.bashrc
  ```
  ### Flume Home Directory
  export FLUME_HOME="/usr/lib/flume/apache-flume-1.6.0-bin"
  export FLUME_CONF_DIR="$FLUME_HOME/conf"
  export FLUME_CLASSPATH="$FLUME_CONF_DIR"
  export PATH="$FLUME_HOME/bin:$PATH"
  ### Flume Home Directory end
  ```
  
  