环境准备

请参考环境准备

创建工作目录

  1. export FALCON_HOME=/home/work
  2. export WORKSPACE=$FALCON_HOME/open-falcon
  3. mkdir -p $WORKSPACE

解压二进制包

  1. tar -xzvf open-falcon-v0.2.0.tar.gz -C $WORKSPACE

在一台机器上启动所有的后端组件

首先确认配置文件中数据库账号密码与实际相同,否则需要修改配置文件。

  1. cd $WORKSPACE
  2. grep -Ilr 3306 ./ | xargs -n1 -- sed -i 's/root:password/real_user:real_password/g')

启动

  1. cd $WORKSPACE
  2. ./open-falcon start
  3. # 检查所有模块的启动状况
  4. ./open-falcon check

更多的命令行工具用法

  1. # ./open-falcon [start|stop|restart|check|monitor|reload] module
  2. ./open-falcon start agent
  3. ./open-falcon check
  4. falcon-graph UP 53007
  5. falcon-hbs UP 53014
  6. falcon-judge UP 53020
  7. falcon-transfer UP 53026
  8. falcon-nodata UP 53032
  9. falcon-aggregator UP 53038
  10. falcon-agent UP 53044
  11. falcon-gateway UP 53050
  12. falcon-api UP 53056
  13. falcon-alarm UP 53063
  14. For debugging , You can check $WorkDir/$moduleName/log/logs/xxx.log