1.1. Environment Preparation

1.1.1. Install Redis

yum install -y redis

1.1.2. Install MySQL

yum install -y mysql-server

1.1.3. create work directory

export HOME=/home/work
export WORKSPACE=$HOME/open-falcon
mkdir -p $WORKSPACE
cd $WORKSPACE

1.1.4. Initialize the MySQL table structure

# All components of open-falcon can start without the root account. It is recommended that common accounts be used for installation to increase security. Here we use a common account work to install and deploy all components.
# However, the root account is required when yum is used to install some dependent lib databases.
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

1.2. Download compiled component

We have compiled relevant component into binary version to make it easier to use. The binaries can only run on 64 bit Linux

Domestic users please click here to quickly download the compiled binary version.

DOWNLOAD="https://github.com/open-falcon/of-release/releases/download/v0.1.0/open-falcon-v0.1.0.tar.gz"
cd $WORKSPACE 

mkdir ./tmp
wget $DOWNLOAD -O open-falcon-latest.tar.gz
#uncompress
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

rm -rf ./tmp && rm -f open-falcon-latest.tar.gz

1.3. Changelog

http://book.open-falcon.org/zh/changelog/README.html

Copyright 2015 - 2018 Xiaomi Inc. all right reserved,powered by Gitbook该文件修订时间: 2022-05-30 16:56:29