1、安装redis
sudo apt install redis-server
2、安装mysql
sudo apt-get install mysql-server
3、安装git
sudo apt install git
4、下载数据库脚本并初始化数据库
sudo cd /tmp/ && git clone https://github.com/open-falcon/falcon-plus.git
sudo cd /tmp/falcon-plus/scripts/mysql/db_schema/
sudo mysql -u root -p < 1_uic-db-schema.sql
sudo mysql -u root -p < 2_portal-db-schema.sql
sudo mysql -u root -p < 3_dashboard-db-schema.sql
sudo mysql -u root -p < 4_graph-db-schema.sql
sudo mysql -u root -p < 5_alarms-db-schema.sql
5、检查go语言环境
银河麒麟V10已经安装有Go语言,检查一下版本号
sudo go version
6、编译安装open-falcon
sudo cd /tmp/falcon-plus/
# make all modules
sudo make all
# pack all modules
sudo make pack
这时候,你会在当前目录下面,得到open-falcon-v0.3.0.tar.gz的压缩包,就表示已经编译和打包成功了。