mkdir -p $GOPATH/src/github.com/open-falcon cd $GOPATH/src/github.com/open-falcon/falcon-plus/scripts/mysql/db_schema/ mysql -h 127.0.0.1 -u root -p < 1_uic-db-schema.sql mysql -h 127.0.0.1 -u root -p < 2_portal-db-schema.sql mysql -h 127.0.0.1 -u root -p < 3_dashboard-db-schema.sql mysql -h 127.0.0.1 -u root -p < 4_graph-db-schema.sql mysql -h 127.0.0.1 -u root -p < 5_alarms-db-schema.sql
编译二进制包
1 2 3 4 5 6 7 8
cd $GOPATH/src/github.com/open-falcon/falcon-plus/ # make all modules make all # make specified module make agent # pack all modules make pack
打包成功,在目录下多了文件open-falcon-v0.2.1.tar.gz
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
lintong@master:~/software/go/src/github.com/open-falcon/falcon-plus$ make all go build -o bin/agent/falcon-agent ./modules/agent go build -o bin/aggregator/falcon-aggregator ./modules/aggregator go build -o bin/graph/falcon-graph ./modules/graph go build -o bin/hbs/falcon-hbs ./modules/hbs go build -o bin/judge/falcon-judge ./modules/judge go build -o bin/nodata/falcon-nodata ./modules/nodata go build -o bin/transfer/falcon-transfer ./modules/transfer go build -o bin/gateway/falcon-gateway ./modules/gateway go build -o bin/api/falcon-api ./modules/api go build -o bin/alarm/falcon-alarm ./modules/alarm go build -ldflags "-X main.GitCommit=`git rev-parse --short HEAD` -X main.Version=0.2.1" -o open-falcon lintong@master:~/software/go/src/github.com/open-falcon/falcon-plus$ make agent go build -o bin/agent/falcon-agent ./modules/agent lintong@master:~/software/go/src/github.com/open-falcon/falcon-plus$ make pack go build -ldflags "-X main.GitCommit=`git rev-parse --short HEAD` -X main.Version=0.2.1" -o open-falcon tar -C out -zcf open-falcon-v0.2.1.tar.gz .
6.解压到安装目录
1 2 3
mkdir ~/software/open-falcon-v0.2.1 tar -zxvf open-falcon-v0.2.1.tar.gz -C ~/software/open-falcon-v0.2.1/
7.安装open-falcon的前端框架dashboard
1 2 3
cd ~/software/open-falcon-v0.2.1 git clone https://github.com/open-falcon/dashboard.git
falcon-graph UP 16736 falcon-hbs UP 16749 falcon-judge UP 16763 falcon-transfer UP 16774 falcon-nodata UP 16786 falcon-aggregator UP 16797 falcon-agent UP 16809 falcon-gateway UP 16819 falcon-api UP 16829 falcon-alarm UP 16844