要求

  • 系统 CentOS6系列,最好是.8
  • 可以上网
  • root权限
  • 干净系统,没有安装过mysql 服务,没有安装过supervisor服务
  • 安装目录会在 /data/openfalcon/open-falcon

file download

mkdir -p /data/openfalcon/open-falcon
cd /data/openfalcon/open-falcon
wget http://ojv12llai.bkt.clouddn.com/uploads/20170304161336.gz

tar xzvf 20170304161336.gz

# 安装只需要
./start.sh

大概会有以下几个步骤

modify config files

execute the file start.sh to replace 192.168.0.110 to your server address
(myenv)[root@localhost open-falcon]# grep -r * -e "192.168.0.110" | grep -v 20 | grep -v templa | grep -v Endpoint
agent/do.sh:sed -i "s:192.168.0.110:$ip:" cfg.json
agent/cfg.json:    "hostname": "192.168.0.110",
alarm/cfg.json:        "portal": "http://192.168.0.110:5050",
fe/cfg.json:        "falconPortal": "http://192.168.0.110:5050/",
fe/cfg.json:        "falconDashboard": "http://192.168.0.110:8081/",
fe/cfg.json:        "falconAlarm": "http://192.168.0.110:9912/"
nodata/a:192.168.0.110 cpu.idle    NaN     NaN     NaN     NaN
Binary file portal/frame/config.pyc matches
portal/frame/config.py:    'external': 'http://192.168.0.110:1234',
start.sh:dirnames=`grep -r * -e "192.168.0.110" | grep -v log | grep -v "sh" | awk '{print $1}' | sort | uniq | awk -F\: '{print $1}'`
start.sh:[ $localip = "192.168.0110" ] || (echo "ip地址不一致,请修改$dirnames里面的192.168.0.110为$localip";sleep 3)

db config


yum install -y mysql mysql-server

mysql -u root -e "grant all privileges on *.* to ops@'%' identified by '123123' ;"
mysql -u root -e "grant all privileges on *.* to ops@'localhost' identified by '123123' ;"

if you do not modify your db, you can execute

dbs/db.sh to create and upload the db information

running

suggest using the supervisor to run the falcon

supervisor you can use pip install supervisor with python version 2.7
and config file you can find under the dir supervisor

user access

user can use web browser with two entrenies:
1. port 8081 is the dashboard
2. port 1234 is the management 

username : ops
password : 123123
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""