Install Open-Falcon On Centos 7
Install Open-Falcon On Centos 7
Install Open-Falcon On Centos 7
环境准备
yum install –y epel-release-7
下载 falcon-plus
https://github.com/open-falcon/falcon-plus/releases
创建工作目录
export FALCON_HOME=/home/work
export WORKSPACE=$FALCON_HOME/open-falcon
mkdir -p $WORKSPACE
解压二进制包
tar -xzvf open-falcon-v0.3.tar.gz -C $WORKSPACE
启动 falcon-plus
cd $WORKSPACE
./open-falcon start
# 检查所有模块的启动状况
./open-falcon check
安装 Dashboard
cd $WORKSPACE
git clone https://github.com/open-falcon/dashboard.git
安装依赖包
yum install -y python-virtualenv
yum install -y python-devel
yum install -y openldap-devel
yum install -y mysql-devel
yum groupinstall "Development tools"
export FALCON_HOME=/home/work
export WORKSPACE=$FALCON_HOME/open-falcon
cd $WORKSPACE/dashboard/
virtualenv ./env
修改配置
dashboard 的配置文件为: 'rrd/config.py',请根据实际情况修改
## API_ADDR 表示后端 api 组件的地址
API_ADDR = "http://127.0.0.1:8080/api/v1"
在生产环境启动
#修改/etc/redis.conf 文件
daemon no 改为 daemon yes
启动 redis
redis-server /etc/redis.conf
启动 dashboard