标签:监控 open-falcon
Open-falcon部署文档(环境准备)
因需求部署了小米的监控open-falcon,部署过程中遇到很多坑,好不容易跳过去了,在此写篇部署文档,以便后用。
1.安装redis
yum install redis
2.安装mysql
yum install mysql
3.创建工作目录(根据个人所求创建)
export HOME=/home/work
export WORKSPACE=$HOME/open-falcon
mkdir -p $WORKSPACE
cd $WORKSPACE
初始化mysql表结构
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
安装open-falcon(下面命令照着官网拷贝的)
tar -zxf of-release-v0.1.0.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
go语言的安装(可以yum安装)
cd /root
tar -zxf go1.4.1.linux-amd64.tar.gz
(没有按照官网的方式来设置环境变量)
vim /etc/profile
export GOROOT=/root/go
export GOPATH=/root/workspace
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH
source /etc/profile
本文出自 “未曾走过的路” 博客,请务必保留此出处http://10551335.blog.51cto.com/10541335/1827966
标签:监控 open-falcon
原文地址:http://10551335.blog.51cto.com/10541335/1827966