背景
尝试一下小米的open falcon
步骤
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| sudo yum install -y redis sudo yum install -y mysql-server
export HOME=/home/work export WORKSPACE=$HOME/open-falcon mkdir -p $WORKSPACE cd $WORKSPACE
git clone https://github.com/open-falcon/scripts.git cd ./scripts/ mysql -h localhost -u root -p < db_schema/graph-db-schema.sql mysql -h localhost -u root -p < db_schema/dashboard-db-schema.sql
mysql -h localhost -u root -p < db_schema/portal-db-schema.sql mysql -h localhost -u root -p < db_schema/links-db-schema.sql mysql -h localhost -u root -p < db_schema/uic-db-schema.sql
DOWNLOAD="https://github.com/XiaoMi/open-falcon/releases/download/0.0.5/open-falcon-0.0.5.tar.gz" cd $WORKSPACE
mkdir ./tmp
wget $DOWNLOAD -O open-falcon-latest.tar.gz
tar -zxf open-falcon-latest.tar.gz -C ./tmp/ for x in `find ./tmp/ -name "*.tar.gz"`;do \ app=`echo $x|cut -d '-' -f2`; \ mkdir -p $app; \ tar -zxf $x -C $app; \ done
|
本博客欢迎转发,但请保留原作者信息
github:codejuan
博客地址:http://blog.decbug.com/